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

Module not found: Can't resolve 'atropos/react' #5

Closed
FranckPoingt opened this issue Jul 28, 2021 · 4 comments
Closed

Module not found: Can't resolve 'atropos/react' #5

FranckPoingt opened this issue Jul 28, 2021 · 4 comments

Comments

@FranckPoingt
Copy link

Hi,
I'm trying to implement Atropos in a project but it seems it can't find the module.
I installed the package via npm i atropos and imported it in my component like indicated in the guide:
import Atropos from 'atropos/react'.

@adithsyam
Copy link

@Frhazz Was looking through the old closed Issues #4, tried importing "atropos/react/atropos-react.esm" instead of "atropos/react" and it seems to find the module.

@razekteixeira
Copy link

@Frhazz @AsyaM1

The solution is to use a newer version of nodejs which supports es modules. Try to use the lib with node >= 14 for example. Everything works exactly as expected (already tested it with react, Vue and vanilla js) :)

@jonathanlal
Copy link

I'm using node 16 - doesn't work... Module not found

@MtDalPizzol
Copy link

Having the same problem here with Node 18.2.0.

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

6 participants