Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Intergration #32

Open
lloydrichards opened this issue Mar 20, 2020 · 0 comments
Open

Typescript Intergration #32

lloydrichards opened this issue Mar 20, 2020 · 0 comments

Comments

@lloydrichards
Copy link

Greetings,

I'm in the process of (trying) to import this library into my project (react using Typescript) and I've run into two problems that might be related and might not.

The first issue was the type for the document.querySelector(".grid") which was returning < Element > not < HTMLElement > got around this by setting the type in querySelector<HTMLElement>(".grid"). Once this was sorted, i thought it would be smooth sailing but then i ran into my second issue.

TypeError: Failed to resolve module specifier "animate-css-grid". Relative references must start with either "/", "./", or "../". once it compiles I get this error in my browser console. I've tried setting the path to be relative, but again there is some issue here cause it should detect this as a module in TS. If anyone else has had experience setting this up in TS I would be very much interested to hear how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant