-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Invalid Version: undefined in preset-env / semver after updating to 7.13.9 #12945
Comments
Hey @tad-lispy! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite." |
This is a Parcel bug. Here it manually calls I don't think that Parcel 1 is still maintained, but as a quick workaround you can pin your |
Oh it seems it's also present in Parcel 2 (https://github.com/parcel-bundler/parcel/blob/806cc65e0e430b1120cdcf1676e2f58738326d30/packages/transformers/babel/src/env.js#L49-L54) - cc @devongovett / @mischnic |
Closing since this is tracked at parcel-bundler/parcel#5943. I'm pinning the issue to avoid identical bug reports in the short term. |
//That can help somebody with a familiar problem |
I have the same SemVer issue after installing I fixed it by reverting back to the older version: |
yes,i meet this question too,this method resolve my doubt. |
Wow thank you very much. I've recently begun learning about client-side tools and npm and I have no idea what these are. I thought I've done something wrong. You're solution helped me. |
Purpose of this commit is to add hyperlink support to Seven JSON Viewer. Please review for style. Added a function in JString/index.tsx to check if a particular value was a valid hyperlink. In JBlock/index.tsx on line 13, I commented out e.preventDefault() in order to allow for the event handler to accept hyperlink clicks. Please let me know if this would have negative consequences for anything I have not considered. **Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
Purpose of this commit is to add hyperlink support to Seven JSON Viewer. Please review for style and value. - Added a function in JString/index.tsx to check if a particular inputvalue was a valid hyperlink. - In JBlock/index.tsx on line 13, I commented out e.preventDefault() in order to allow for the event handler to accept hyperlink clicks. Please let me know if this would have negative consequences for anything I have not considered. - **Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
Purpose of this commit is to add hyperlink support to Seven JSON Viewer. Please review for style and value. - Added a function in JString/index.tsx to check if a particular inputvalue was a valid hyperlink. - In JBlock/index.tsx on line 13, I commented out e.preventDefault() in order to allow for the event handler to accept hyperlink clicks. Please let me know if this would have negative consequences for anything I have not considered. - **Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943. Added hyperlink support Purpose of this commit is to add hyperlink support to Seven JSON Viewer. Please review for style. Added a function in JString/index.tsx to check if a particular value was a valid hyperlink. In JBlock/index.tsx on line 13, I commented out e.preventDefault() in order to allow for the event handler to accept hyperlink clicks. Please let me know if this would have negative consequences for anything I have not considered. **Note:** I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
Purpose of this commit is to add hyperlink support to Seven JSON Viewer. Please review for style and value. - Added a function in JString/index.tsx to check if a particular inputvalue was a valid hyperlink. - In JBlock/index.tsx on line 13, I commented out e.preventDefault() in order to allow for the event handler to accept hyperlink clicks. Please let me know if this would have negative consequences for anything I have not considered. - Note: I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
Purpose of this commit is to add hyperlink support to Seven JSON Viewer. Please review for style and implementation. - Added a function in JString/index.tsx to check if a particular input value was a valid hyperlink. - In JBlock/index.tsx on line 13, I commented out e.preventDefault() in order to allow for the event handler to accept hyperlink clicks. Please let me know if this would have negative consequences for anything I have not considered. - Note: I experienced an error upon trying to build the project [detailed here](babel/babel#12945 (comment)). I needed to follow [these steps](https://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8://github.com/babel/babel/issues/12945#issuecomment-797164542-permalink:~:text=3%20days%20ago-,I%20have%20the%20same%20SemVer%20issue%20after%20installing%20parcel%401.12.4.,npm%20i%20%2D%2Dsave%2Ddev%20parcel%2Dbundler%401.12.3,-%F0%9F%91%8D) to resolve which effetively reverted the parcel-bundler to parcel-bundler@1.12.3.Apparently there is an ongoing issue with the previous version of parcel-bundler being used for this project. See the isssue that was open at the time of this commit parcel-bundler/parcel#5943.
Parcel v1.12.5 has a fix, but please migrate to v2 when you can. See parcel-bundler/parcel#5943 (comment) for details. |
Thanks! ❤️ |
Bug Report
Current behavior
I'm using Babel as part of Parcel bundler (Babel is a transient dependency). Yesterday it worked fine, but today I'm getting this:
Here is the affected repository: https://gitlab.com/tad-lispy/parcel-babel-or-semver-error-showcase
Input Code
Not applicable. Doesn't matter.
Expected behavior
Should build without errors.
Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
I don't have any config. Maybe Parcel provides some defaults.
Environment
Possible Solution
Only workaround for me is to copy
package-lock.json
from another projectAdditional context
Here is a diff of
package-lock.json
from yesterday and today made usingjd
:The text was updated successfully, but these errors were encountered: