-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Module not found: Error: Can't resolve '@babel/runtime/helpers/inheritsLoose' #296
Comments
To see the problem from a command line: With yarn:
With pnpm:
If you want something more like a sample repo, test.zip should suffice. See the included readme for instructions. |
Try with reinstalling the |
@msf-caesar You seem to have misunderstood the issue here. You may want to experiment with the test.zip I attached to my earlier comment. Be sure to read the included readme file, particularly the final sentence. |
Same error for me, using NextJS with NPM, and TypeScript but no Babel. Installing
I'm not using Babel elsewhere in the project. If it's a (peer) dependency of react-slider then could it be declared as such? |
Yeah, I have no idea why its not declared as a dependency when...its a dependency. I assume most people have this installed via another packages dependency tree so it never pops up as an error but it should be in react-sliders dependences. |
Description
ReactSlider attempts to use
@babel/runtime
fromdist/es/prod/components/ReactSlider/ReactSlider.mjs
but does not declare a dependency or peer dependency. This issue would be similar to #284.This happens to work with npm's hoisting due to other dependencies pulling that package in, but it will fail with yarn's p'n'p or pnpm with hoisting disabled.
CodeSandbox
Unfortunately, we can not provide the sandbox for reproducing the issue, but our projects have ongoing PR running checks for building with the component usages.
The text was updated successfully, but these errors were encountered: