You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many if not all declaration files, types are being imported like this:
import type { AnimationEffect } from './constants';
This is giving me the following typescript error:
TypeScript error in C:/Users/.../node_modules/react-useanimations/utils/getEvents.d.ts(1,13): '=' expected. TS1005
I don't know if this happens because of a version mismatch, but it generates errors in the building process. I fixed it locally by simply changing the syntax to the following.
import { AnimationEffect } from './constants';
This is a really cool package and I thought it might be good for me to let the author know of some issues I had with it.
The text was updated successfully, but these errors were encountered:
davidjentjens
added a commit
to davidjentjens/react-useanimations
that referenced
this issue
Feb 17, 2021
@davidjentjens Thanks for the report - it's possible that the bundler you're using has not yet supported import type for TS - eg. this nextJS discussion vercel/next.js#11909 (comment)
Please let me know if after some updates this is still an issue, thanks.
In many if not all declaration files, types are being imported like this:
import type { AnimationEffect } from './constants';
This is giving me the following typescript error:
TypeScript error in C:/Users/.../node_modules/react-useanimations/utils/getEvents.d.ts(1,13): '=' expected. TS1005
I don't know if this happens because of a version mismatch, but it generates errors in the building process. I fixed it locally by simply changing the syntax to the following.
import { AnimationEffect } from './constants';
This is a really cool package and I thought it might be good for me to let the author know of some issues I had with it.
The text was updated successfully, but these errors were encountered: