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

Incompatibility With NextJs #3

Open
mokabyls opened this issue Dec 2, 2020 · 0 comments
Open

Incompatibility With NextJs #3

mokabyls opened this issue Dec 2, 2020 · 0 comments

Comments

@mokabyls
Copy link

mokabyls commented Dec 2, 2020

Expected Behavior

import and use library with NextJs.

Current Behavior

  1. insert this line at the top on a component : import { useAnimateCss } from 'use-animate-css'.
  2. NextJs failed to compile.

Possible Solution

Refer to NextJs documentation, simply remove this line : import 'animate.css' at the top on the file.
More details here.

Steps to Reproduce

  1. Create a fresh NextJS environment (via npx create-next-app ...)
  2. require doublethinkio/use-animate-css.
  3. insert this line at the top on a component : import { useAnimateCss } from 'use-animate-css'.
  4. NextJs failed to compile.

Context (Environment)

  • NextJs 10.0.1.
  • Node version : 14.0.0.
  • Yarn version : 1.22.10.

Btw, many thanks for your amazing work on this lib !

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