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

Cannot compile in CRA@5 #946

Open
jisaacks opened this issue Jun 21, 2022 · 0 comments
Open

Cannot compile in CRA@5 #946

jisaacks opened this issue Jun 21, 2022 · 0 comments

Comments

@jisaacks
Copy link

I have popmotion@11.0.3 installed as a dependency for framer-motion@6.3.11 in my create-react-app with react-scripts@5.0.0

It will not compile, and I get errors like this:

ERROR in ./node_modules/popmotion/dist/es/utils/interpolate.mjs 1:0-152
Module not found: Error: Can't resolve '<project-folder>/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray' in '<project-folder>/node_modules/popmotion/dist/es/utils'
Did you mean 'slicedToArray.js'?
BREAKING CHANGE: The request '<project-folder>/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
 @ ./node_modules/popmotion/dist/es/index.mjs 12:0-54 12:0-54
 @ ./node_modules/framer-motion/dist/es/value/index.mjs 2:0-46 293:4-21
 @ ./node_modules/framer-motion/dist/es/index.mjs 13:0-61 13:0-61 13:0-61
 @ ./src/rui/widgets/FormInputHint.tsx 11:0-39 28:30-40
 @ ./src/rui/widgets/PasswordRequirements.tsx 8:0-44 51:30-43
 @ ./src/rui/send/SignUp.tsx 21:0-68 410:47-67
 @ ./src/routers/Send.js 11:0-37 164:26-32
 @ ./src/routers/Root.js 29:9-31:17
 @ ./src/App.js 12:0-38 108:32-42
 @ ./src/index.js 67:19-69:20

All of the errors are coming from popmotion.

I don't fully understand the issue. I looked at the file ./node_modules/popmotion/dist/es/utils/interpolate.mjs and it does not try to import @babel/runtime/helpers/esm/slicedToArray so I wouldn't even know how to manually update any import statement.

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