-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Crash during parcel launch: _semver(...).default.minVersion is not a function #6720
Comments
@devongovett - I see that you wrote the vast majority of this file 'packages/transformers/js/src/JSTransformer.js'. If I may make a suggestion, it is better not to make such large functions. Such code is a bit more difficult to maintain. Such a huge function is better broken down into several smaller functions. |
I removed node_modules and reinstalled it and it worked |
Same issue is happening to me, tried deleting node_modules AND clearing npm cache but issue still happens
|
Same, just experienced the crash even with uninstall / install
|
Could someone share a github repo/zip where this happens? You can probably remove all of your project's code and leave just some dummy code file, package.json and the lockfile. |
Had the same issue. Removing the |
The fix is parcel uses but parcel depends on semver 5.5:
|
@benwaffle Great find! This should fix that #7334 |
🐛 bug report
I tried to run parcel2 in an existing project. When trying to run, the parcel crashes on a runtime error in one of its libraries.
🎛 Configuration (.babelrc, package.json, cli command)
package.json
🤔 Expected Behavior
I wanted the parcel to run in my project
😯 Current Behavior
💁 Possible Solution
There is probably a bad reference in the parcel code that was not detected by the static analysis.
Probably the "minVersion" method has been removed from the "semver" library.
🔦 Context
An error occurs during start-up
💻 Code Sample
It' s going to be hard for me to provide some example code, because this is a big project
🌍 Your Environment
The text was updated successfully, but these errors were encountered: