easy-webpack / core

An easy way to create configuration files for Webpack
MIT License
68 stars 6 forks source link

lodash is a dependency #1

Closed mbroadst closed 7 years ago

mbroadst commented 8 years ago

but its not listed in the dependencies of this module

┆Issue is synchronized with this Asana task

mbroadst commented 8 years ago

I'm actually not sure if that's just left in by accident, it seems to only export the get method from lodash? https://github.com/easy-webpack/core/blob/master/src/index.ts#L3

niieani commented 8 years ago

Indeed! Good catch. Yes, I'm exporting the get intentionally. It's useful for use in case one wanted to manually generate more complex functions for generateConfig's parameter use.

mbroadst commented 8 years ago

it's worth noting that the whole thing kind of falls apart unless you're using node 6+. I was getting a number of errors with this and regenerator, and then the class wouldn't build for some rather obscure issues. might want to just try building the skeleton on node 4 (an LTS release)

niieani commented 8 years ago

That's odd. What are your issues under node 4 specifically? We're running CI tests using the latest webpack skeleton using node 4 and they're building just fine.

niieani commented 8 years ago

Unless you are talking about not being able to build easy-webpack/core itself?

mbroadst commented 8 years ago

I did manual installs of regenerator-runtime (which was not included in the webpack skeleton at the time), as well as lodash, and then I quit running with node 4 once I started getting these errors during webpack build:

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

WARNING in ./src ^\.\/.*$
Module not found: Error: Can't resolve 'html' in '/home/mbroadst/Development/hive/dashboard'
 @ ./src ^\.\/.*$

ERROR in multi aurelia-bootstrap
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ multi aurelia-bootstrap

ERROR in multi app
Module not found: Error: Can't resolve 'babel?{"plugins":["transform-decorators-legacy"],"presets":["es2015-loose-native-modules","stage-1"],"cacheDirectory":true}' in '/home/mbroadst/Development/hive/dashboard'
 @ multi app
niieani commented 8 years ago

Do you have the latest version of NPM?

mbroadst commented 8 years ago

The latest version for v4 yes. I have nvm installed on that machine and was using 4 at the time, but as I said I had to update to v6 to get the skeleton working properly.

niieani commented 8 years ago

From the error it looks like you didn't have everything installed with npm install or you're missing some dependencies from the package.json. The errors are not not related to the node version.

niieani commented 7 years ago

lodash is fixed in one of the recent commits.