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

Invalid target passed to babel-preset-env for node ">= 6.0.0" #830

Closed
natew opened this issue Feb 16, 2018 · 5 comments
Closed

Invalid target passed to babel-preset-env for node ">= 6.0.0" #830

natew opened this issue Feb 16, 2018 · 5 comments

Comments

@natew
Copy link

natew commented Feb 16, 2018

Choose one: 🐛 bug report

🎛 Configuration (.babelrc, package.json, cli command)

.babelrc

{
  "presets": ["env"]
}

running:

parcel --target=node

🤔 Expected Behavior

Should run a node app

😯 Current Behavior

Getting this error:

/Users/nw/projects/motion/orbit/apps/desktop/src/index.js: Invalid version passed for target "node": ">= 6.0.0". Versions must be in semver format (major.minor.patch)
    at /Users/nw/projects/motion/orbit/node_modules/.registry.npmjs.org/babel-preset-env/1.6.1/node_modules/babel-preset-env/lib/index.js:69:13

💁 Possible Solution

Seems like it's using >= rather than just passing in a node version, perhaps.

🌍 Your Environment

Software Version(s)
Parcel 1.6.1
Node 9.2
Operating System High Sierra
@DeMoorJasper
Copy link
Member

DeMoorJasper commented Feb 16, 2018

fixed by #827 ?

@saada
Copy link

saada commented Feb 19, 2018

Are there any workarounds for this?

@DeMoorJasper
Copy link
Member

Do you still have this bug on latest master branch version @saada ?

@saada
Copy link

saada commented Feb 19, 2018

Sorry @DeMoorJasper I'm using 1.6.1. I'll wait until the latest release comes out then

@lbguilherme
Copy link
Contributor

Workaround is mentioned in #827

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

4 participants