lint-diff
lint-diff copied to clipboard
chore: bump webpack and webpack-cli dependencies
It is necessary to fix the error Cannot read property 'properties' of undefined
https://github.com/plotly/dash-component-boilerplate/issues/12#issuecomment-425040481
I just ran in to this error myself
On this branch, I got an error with babel-core
$ yarn && yarn build
yarn install v1.17.3
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "babel-core@6".
[4/4] Building fresh packages...
success Saved lockfile.
$ npm run build
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1569420475859-0.4898397621835602/node but npm is using /home/psego/.volta/tools/image/node/10.16.3/6.9.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> [email protected] build /home/psego/Development/OpenSource/lint-diff
> webpack
Hash: 3c7d06c3693317dfe717
Version: webpack 4.30.0
Time: 63ms
Built at: 09/25/2019 10:07:56 AM
Asset Size Chunks Chunk Names
lint-diff.js 6.62 KiB main [emitted] main
lint-diff.js.map 3.52 KiB main [emitted] main
Entrypoint main = lint-diff.js lint-diff.js.map
[./index.js] 2.84 KiB {main} [not cacheable] [built] [failed] [1 error]
ERROR in ./index.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
Error: Cannot find module 'babel-core'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (/home/psego/Development/OpenSource/lint-diff/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object.<anonymous> (/home/psego/Development/OpenSource/lint-diff/node_modules/babel-loader/lib/index.js:3:13)
at Module._compile (/home/psego/Development/OpenSource/lint-diff/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (/home/psego/Development/OpenSource/lint-diff/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at loadLoader (/home/psego/Development/OpenSource/lint-diff/node_modules/loader-runner/lib/loadLoader.js:18:17)
at iteratePitchingLoaders (/home/psego/Development/OpenSource/lint-diff/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at runLoaders (/home/psego/Development/OpenSource/lint-diff/node_modules/loader-runner/li