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
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'.
The text was updated successfully, but these errors were encountered:
@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.
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) :)
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'.
The text was updated successfully, but these errors were encountered: