Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

Does not work on Node < 4.0.0 #39

Closed
rictorres opened this issue Feb 25, 2017 · 4 comments
Closed

Does not work on Node < 4.0.0 #39

rictorres opened this issue Feb 25, 2017 · 4 comments

Comments

@rictorres
Copy link

rictorres commented Feb 25, 2017

What kind of issue are you submitting?

  • Bug Report

  • jshint-loader version 0.8.4

#37 updated loader-utils to ^1.0.2. However, from v0.2.17 (webpack/loader-utils@4130dff) loader-utils started using ES6 features from node >= 4.0.0.

ERROR in /node_modules/jshint-loader/node_modules/loader-utils/lib/parseQuery.js:24
	queryArgs.forEach(arg => {
	                      ^^
Unexpected token =>

I believe this is a breaking change for everyone using Node < 4 (including iojs).

@joshwiens
Copy link
Member

joshwiens commented Feb 26, 2017

Webpack itself does not support node < 4.3. NodeJS itself doesn't support anything < 4.x

@rictorres
Copy link
Author

alright, then. i'm gonna stick with 0.8.3 for now. thanks

@joshwiens
Copy link
Member

@rictorres - Something to keep in the back of your mind. The move to default es6 module output has begun, it is something you will see more over the coming months & Node v8 LTS isn't too far off.

It's time to get off the older node / IO.js versions & Webpack 1.x. That said, you are in luck! The webpack-cli team is looking for people to test their migration tool which may provide a simplified migration to webpack@latest for your projects.

@rictorres
Copy link
Author

@d3viant0ne I understand that :)
Most of my personal projects are using Node > 7 already, however in this specific case, updating from iojs-2.5.0 is breaking a lot of stuff and I just don't have enough time at the moment to inspect it further :'(

Thanks for the heads up though and keep up the awesome work! 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants