The important ones being last three commits (latest to oldest):
Breaking: Run yarn upgrade @rails/webpacker
Copy over yarn.lock and run yarn install
Copy over package.json and run yarn install
I have a working project with package.json and yarn.lock.
Yesterday I ran yarn upgrade @rails/webpacker after which my project wouldn't build anymore.
I realized that the issue is related to existing yarn.lock as removing yarn.lock and running yarn install fixes the issue.
(However, this installs all the latest available package versions and I don't want that, especially since some of them have breaking changes and my project doesn't work anymore after the build)
What is the expected behavior?
Yarn installs all the necessary dependencies.
Yarn uses yarn.lock and installs all dependencies with correct versions.
What I tried
I tried all the possible useful Yarn CLI commands. yarn install, yarn check, yarn check --integrity, yarn check --verify-tree (I can paste the output of each of these if needed).
Removed node_modules and re-run yarn install
yarn upgrade @babel/plugin-proposal-class-properties (the first package that's showing the error)
Full error output for: `yarn run webpack --progress --config config/webpack/development.js`
yarn run v1.21.1
$ /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/.bin/webpack --progress --config config/webpack/development.js
Hash: 51838b813c4f404db376
Version: webpack 4.41.3
Time: 466ms
Built at: 12/16/2019 3:42:27 PM
Asset Size Chunks Chunk Names
js/application-7a273aafb61b6afa26cd.js 7.31 KiB application [emitted] [immutable] application
js/application-7a273aafb61b6afa26cd.js.map 3.53 KiB application [emitted] [dev] application
js/hello_react-be08e06ca41243dc415d.js 7.19 KiB hello_react [emitted] [immutable] hello_react
js/hello_react-be08e06ca41243dc415d.js.map 3.53 KiB hello_react [emitted] [dev] hello_react
manifest.json 703 bytes [emitted]
Entrypoint application = js/application-7a273aafb61b6afa26cd.js js/application-7a273aafb61b6afa26cd.js.map
Entrypoint hello_react = js/hello_react-be08e06ca41243dc415d.js js/hello_react-be08e06ca41243dc415d.js.map
[./app/javascript/packs/application.js] 3.41 KiB {application} [built] [failed] [1 error]
[./app/javascript/packs/hello_react.jsx] 3.29 KiB {hello_react} [built] [failed] [1 error]
ERROR in ./app/javascript/packs/application.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/plugin-proposal-class-properties' from '/Users/viktor/Developer/JavaScript/webpack_latest'
at Function.module.exports [as sync] (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/resolve/lib/sync.js:74:15)
at resolveStandardizedName (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
at resolvePlugin (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
at loadPlugin (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
at createDescriptor (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
at /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
at Array.map ()
at createDescriptors (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
at createPluginDescriptors (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
at plugins (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)
at mergeChainOpts (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-chain.js:319:26)
at /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-chain.js:283:7
at buildRootChain (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-chain.js:90:20)
at loadPrivatePartialConfig (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/partial.js:85:55)
at Object.loadPartialConfig (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/partial.js:110:18)
at Object. (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:144:26)
at Generator.next ()
at asyncGeneratorStep (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:3:103)
at _next (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:5:194)
at /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:5:364
at new Promise ()
at Object. (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:5:97)
at Object._loader (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:224:18)
at Object.loader (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:60:18)
at Object. (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:55:12)
ERROR in ./app/javascript/packs/hello_react.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/plugin-proposal-class-properties' from '/Users/viktor/Developer/JavaScript/webpack_latest'
at Function.module.exports [as sync] (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/resolve/lib/sync.js:74:15)
at resolveStandardizedName (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:101:31)
at resolvePlugin (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:54:10)
at loadPlugin (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:62:20)
at createDescriptor (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:154:9)
at /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:109:50
at Array.map ()
at createDescriptors (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
at createPluginDescriptors (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:105:10)
at plugins (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:40:19)
at mergeChainOpts (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-chain.js:319:26)
at /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-chain.js:283:7
at buildRootChain (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-chain.js:90:20)
at loadPrivatePartialConfig (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/partial.js:85:55)
at Object.loadPartialConfig (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/partial.js:110:18)
at Object. (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:144:26)
at Generator.next ()
at asyncGeneratorStep (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:3:103)
at _next (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:5:194)
at /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:5:364
at new Promise ()
at Object. (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:5:97)
at Object.loader (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:60:18)
at Object. (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/lib/index.js:55:12)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Repro steps
git clone https://github.com/vfonic/webpack_latest
cd webpack_latest
yarn
yarn run webpack --progress --config config/webpack/development.js # fails
While I was making repro repo, it became even weirder/more broken.
This used to work:
git checkout HEAD~1 # Copy over `yarn.lock` and run `yarn install` (eecd18d)
yarn
yarn run webpack --progress --config config/webpack/development.js # fails
It seems like yarn install now updates yarn.lock. I didn't think this is expected behavior. Oddly enough, in the other repo, yarn install, with the same package.json dependencies and the same yarn.lock, doesn't update yarn.lock.
I've tried removing node_modules in both projects, still the same results: yarn install updates yarn.lock in one project and doesn't do so in the other project. In the project where yarn.lock gets updated, the project cannot be built anymore.
Here's the command I ran where I first noticed the issue:
Please mention your node.js, yarn and operating system version.
Yarn: 1.21.1
Node: 12.13.1
Webpack: 4.41.0
`yarn check` output
yarn check v1.21.1
warning "@babel/generator#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4"
error "@oclif/plugin-help" is wrong version: expected "2.2.1", got "2.2.0"
warning "@babel/core#@babel/template@^7.6.0" could be deduped from "7.7.4" to "@babel/template@7.7.4"
warning "@babel/core#@babel/traverse@^7.6.3" could be deduped from "7.7.4" to "@babel/traverse@7.7.4"
warning "@babel/core#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@rails/webpacker#@babel/plugin-proposal-object-rest-spread@^7.6.2" could be deduped from "7.7.4" to "@babel/plugin-proposal-object-rest-spread@7.7.4"
warning "@rails/webpacker#@babel/plugin-syntax-dynamic-import@^7.2.0" could be deduped from "7.7.4" to "@babel/plugin-syntax-dynamic-import@7.7.4"
warning "@rails/webpacker#@babel/plugin-transform-destructuring@^7.6.0" could be deduped from "7.7.4" to "@babel/plugin-transform-destructuring@7.7.4"
warning "@rails/webpacker#babel-loader@^8.0.6" could be deduped from "8.0.6" to "babel-loader@8.0.6"
warning "react-quill#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9"
warning "@types/react-dom#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9"
warning "@types/react-router-dom#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9"
error "@typescript-eslint/eslint-plugin#eslint@^5.0.0" doesn't satisfy found match of "eslint@6.5.1"
error "@typescript-eslint/parser#eslint@^5.0.0" doesn't satisfy found match of "eslint@6.5.1"
warning "@babel/core#@babel/helpers#@babel/template@^7.6.0" could be deduped from "7.7.4" to "@babel/template@7.7.4"
warning "@babel/core#@babel/helpers#@babel/traverse@^7.6.2" could be deduped from "7.7.4" to "@babel/traverse@7.7.4"
warning "@babel/core#@babel/helpers#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/core#@babel/template#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/core#@babel/traverse#@babel/helper-function-name@^7.1.0" could be deduped from "7.7.4" to "@babel/helper-function-name@7.7.4"
warning "@babel/core#@babel/traverse#@babel/helper-split-export-declaration@^7.4.4" could be deduped from "7.7.4" to "@babel/helper-split-export-declaration@7.7.4"
warning "@babel/core#@babel/traverse#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4"
error "heroku#@oclif/plugin-help" not installed
warning "react-dnd#@types/hoist-non-react-statics#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9"
warning "@types/react-router-dom#@types/react-router#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9"
warning "@graphql-codegen/cli#graphql-tag-pluck#@babel/traverse@^7.4.4" could be deduped from "7.7.4" to "@babel/traverse@7.7.4"
warning "@graphql-codegen/cli#graphql-tag-pluck#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@rails/webpacker#@babel/plugin-proposal-object-rest-spread#@babel/plugin-syntax-object-rest-spread@^7.2.0" could be deduped from "7.7.4" to "@babel/plugin-syntax-object-rest-spread@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-async-generator-functions@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-async-generator-functions@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-dynamic-import@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-dynamic-import@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-json-strings@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-json-strings@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-optional-catch-binding@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-optional-catch-binding@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-unicode-property-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-unicode-property-regex@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-async-generators@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-async-generators@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-json-strings@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-json-strings@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-optional-catch-binding@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-optional-catch-binding@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-top-level-await@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-top-level-await@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-arrow-functions@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-arrow-functions@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-async-to-generator@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-async-to-generator@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-block-scoped-functions@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-block-scoped-functions@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-block-scoping@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-block-scoping@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-classes@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-classes@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-computed-properties@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-computed-properties@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-dotall-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-dotall-regex@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-duplicate-keys@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-duplicate-keys@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-exponentiation-operator@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-exponentiation-operator@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-for-of@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-for-of@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-function-name@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-function-name@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-literals@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-member-expression-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-member-expression-literals@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-modules-systemjs@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-modules-systemjs@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-modules-umd@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-modules-umd@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-named-capturing-groups-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-named-capturing-groups-regex@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-new-target@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-new-target@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-object-super@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-object-super@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-parameters@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-parameters@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-property-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-property-literals@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-reserved-words@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-reserved-words@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-shorthand-properties@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-shorthand-properties@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-spread@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-spread@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-sticky-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-sticky-regex@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-template-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-template-literals@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-typeof-symbol@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-typeof-symbol@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-unicode-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-unicode-regex@7.7.4"
warning "quill-magic-url#@babel/preset-env#@babel/plugin-transform-regenerator@^7.7.4" could be deduped from "7.7.5" to "@babel/plugin-transform-regenerator@7.7.5"
warning "prettier-eslint#vue-eslint-parser#eslint@>=3.9.0" could be deduped from "6.5.1" to "eslint@6.5.1"
warning "@babel/core#@babel/traverse#@babel/helper-function-name#@babel/helper-get-function-arity@^7.0.0" could be deduped from "7.7.4" to "@babel/helper-get-function-arity@7.7.4"
warning "@babel/core#@babel/traverse#@babel/helper-function-name#@babel/template@^7.1.0" could be deduped from "7.7.4" to "@babel/template@7.7.4"
warning "@babel/core#@babel/traverse#@babel/helper-function-name#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/core#@babel/traverse#@babel/helper-split-export-declaration#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/helpers#@babel/template#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name@^7.1.0" could be deduped from "7.7.4" to "@babel/helper-function-name@7.7.4"
warning "graphql-tag-pluck#@babel/traverse#@babel/helper-split-export-declaration@^7.4.4" could be deduped from "7.7.4" to "@babel/helper-split-export-declaration@7.7.4"
warning "graphql-tag-pluck#@babel/traverse#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/helpers#@babel/traverse#@babel/helper-function-name@^7.1.0" could be deduped from "7.7.4" to "@babel/helper-function-name@7.7.4"
warning "@babel/helpers#@babel/traverse#@babel/helper-split-export-declaration@^7.4.4" could be deduped from "7.7.4" to "@babel/helper-split-export-declaration@7.7.4"
warning "@babel/helpers#@babel/traverse#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-async-generator-functions#@babel/plugin-syntax-async-generators@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-async-generators@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-json-strings#@babel/plugin-syntax-json-strings@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-json-strings@7.7.4"
warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-optional-catch-binding#@babel/plugin-syntax-optional-catch-binding@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-optional-catch-binding@7.7.4"
error "heroku#@oclif/plugin-help#@oclif/command" not installed
warning "webpack#terser-webpack-plugin#terser@^4.1.2" could be deduped from "4.4.2" to "terser@4.4.2"
warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name#@babel/helper-get-function-arity@^7.0.0" could be deduped from "7.7.4" to "@babel/helper-get-function-arity@7.7.4"
warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name#@babel/template@^7.1.0" could be deduped from "7.7.4" to "@babel/template@7.7.4"
warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/helpers#@babel/traverse#@babel/helper-function-name#@babel/helper-get-function-arity@^7.0.0" could be deduped from "7.7.4" to "@babel/helper-get-function-arity@7.7.4"
warning "@babel/helpers#@babel/traverse#@babel/helper-function-name#@babel/template@^7.1.0" could be deduped from "7.7.4" to "@babel/template@7.7.4"
warning "@babel/helpers#@babel/traverse#@babel/helper-function-name#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/core#@babel/helper-function-name#@babel/helper-get-function-arity#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "graphql-tag-pluck#@babel/traverse#@babel/helper-split-export-declaration#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/helpers#@babel/traverse#@babel/helper-split-export-declaration#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4"
error "heroku#@oclif/plugin-help#@oclif/command#@oclif/config" not installed
error "heroku#@oclif/plugin-help#@oclif/command#@oclif/plugin-help" not installed
error "heroku#@oclif/plugin-help#@oclif/command#semver" not installed
error "@babel/plugin-proposal-unicode-property-regex#@babel/helper-create-regexp-features-plugin" not installed
warning "graphql-tag-pluck#@babel/helper-function-name#@babel/helper-get-function-arity#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "@babel/helpers#@babel/helper-function-name#@babel/helper-get-function-arity#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
warning "graphql-tag-pluck#@babel/helper-function-name#@babel/template#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4"
error "heroku#@oclif/plugin-help#@oclif/config#tslib" not installed
info Found 88 warnings.
error Found 10 errors.
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.
These are several issues actually.
yarn upgrade @rails/webpacker
upgrades packages to versions that don't build the project anymore.yarn install
sometimes updatesyarn.lock
for an unknown reason.What is the current behavior?
Running
yarn upgrade @rails/webpacker
(andwebpack
consecutively), breaks the build.https://github.com/vfonic/webpack_latest
There are 6 commits in the repo: https://github.com/vfonic/webpack_latest/commits/master
The important ones being last three commits (latest to oldest):
yarn upgrade @rails/webpacker
yarn.lock
and runyarn install
package.json
and runyarn install
I have a working project with
package.json
andyarn.lock
. Yesterday I ranyarn upgrade @rails/webpacker
after which my project wouldn't build anymore.I realized that the issue is related to existing
yarn.lock
as removingyarn.lock
and runningyarn install
fixes the issue. (However, this installs all the latest available package versions and I don't want that, especially since some of them have breaking changes and my project doesn't work anymore after the build)What is the expected behavior?
Yarn installs all the necessary dependencies. Yarn uses
yarn.lock
and installs all dependencies with correct versions.What I tried
yarn install
,yarn check
,yarn check --integrity
,yarn check --verify-tree
(I can paste the output of each of these if needed).node_modules
and re-runyarn install
yarn upgrade @babel/plugin-proposal-class-properties
(the first package that's showing the error)Full error output for: `yarn run webpack --progress --config config/webpack/development.js`
yarn run v1.21.1 $ /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/.bin/webpack --progress --config config/webpack/development.js Hash: 51838b813c4f404db376 Version: webpack 4.41.3 Time: 466ms Built at: 12/16/2019 3:42:27 PM Asset Size Chunks Chunk Names js/application-7a273aafb61b6afa26cd.js 7.31 KiB application [emitted] [immutable] application js/application-7a273aafb61b6afa26cd.js.map 3.53 KiB application [emitted] [dev] application js/hello_react-be08e06ca41243dc415d.js 7.19 KiB hello_react [emitted] [immutable] hello_react js/hello_react-be08e06ca41243dc415d.js.map 3.53 KiB hello_react [emitted] [dev] hello_react manifest.json 703 bytes [emitted] Entrypoint application = js/application-7a273aafb61b6afa26cd.js js/application-7a273aafb61b6afa26cd.js.map Entrypoint hello_react = js/hello_react-be08e06ca41243dc415d.js js/hello_react-be08e06ca41243dc415d.js.map [./app/javascript/packs/application.js] 3.41 KiB {application} [built] [failed] [1 error] [./app/javascript/packs/hello_react.jsx] 3.29 KiB {hello_react} [built] [failed] [1 error] ERROR in ./app/javascript/packs/application.js Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module '@babel/plugin-proposal-class-properties' from '/Users/viktor/Developer/JavaScript/webpack_latest' at Function.module.exports [as sync] (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/resolve/lib/sync.js:74:15) at resolveStandardizedName (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:101:31) at resolvePlugin (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:54:10) at loadPlugin (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/files/plugins.js:62:20) at createDescriptor (/Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:154:9) at /Users/viktor/Developer/JavaScript/webpack_latest/node_modules/babel-loader/node_modules/@babel/core/lib/config/config-descriptors.js:109:50 at Array.map (Repro steps
While I was making repro repo, it became even weirder/more broken.
This used to work:
It seems like
yarn install
now updatesyarn.lock
. I didn't think this is expected behavior. Oddly enough, in the other repo,yarn install
, with the samepackage.json
dependencies and the sameyarn.lock
, doesn't updateyarn.lock
. I've tried removingnode_modules
in both projects, still the same results:yarn install
updatesyarn.lock
in one project and doesn't do so in the other project. In the project whereyarn.lock
gets updated, the project cannot be built anymore.Here's the command I ran where I first noticed the issue:
This "fixes" the build:
Please mention your node.js, yarn and operating system version.
Yarn: 1.21.1 Node: 12.13.1 Webpack: 4.41.0
`yarn check` output
yarn check v1.21.1 warning "@babel/generator#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4" error "@oclif/plugin-help" is wrong version: expected "2.2.1", got "2.2.0" warning "@babel/core#@babel/template@^7.6.0" could be deduped from "7.7.4" to "@babel/template@7.7.4" warning "@babel/core#@babel/traverse@^7.6.3" could be deduped from "7.7.4" to "@babel/traverse@7.7.4" warning "@babel/core#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@rails/webpacker#@babel/plugin-proposal-object-rest-spread@^7.6.2" could be deduped from "7.7.4" to "@babel/plugin-proposal-object-rest-spread@7.7.4" warning "@rails/webpacker#@babel/plugin-syntax-dynamic-import@^7.2.0" could be deduped from "7.7.4" to "@babel/plugin-syntax-dynamic-import@7.7.4" warning "@rails/webpacker#@babel/plugin-transform-destructuring@^7.6.0" could be deduped from "7.7.4" to "@babel/plugin-transform-destructuring@7.7.4" warning "@rails/webpacker#babel-loader@^8.0.6" could be deduped from "8.0.6" to "babel-loader@8.0.6" warning "react-quill#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9" warning "@types/react-dom#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9" warning "@types/react-router-dom#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9" error "@typescript-eslint/eslint-plugin#eslint@^5.0.0" doesn't satisfy found match of "eslint@6.5.1" error "@typescript-eslint/parser#eslint@^5.0.0" doesn't satisfy found match of "eslint@6.5.1" warning "@babel/core#@babel/helpers#@babel/template@^7.6.0" could be deduped from "7.7.4" to "@babel/template@7.7.4" warning "@babel/core#@babel/helpers#@babel/traverse@^7.6.2" could be deduped from "7.7.4" to "@babel/traverse@7.7.4" warning "@babel/core#@babel/helpers#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/core#@babel/template#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/core#@babel/traverse#@babel/helper-function-name@^7.1.0" could be deduped from "7.7.4" to "@babel/helper-function-name@7.7.4" warning "@babel/core#@babel/traverse#@babel/helper-split-export-declaration@^7.4.4" could be deduped from "7.7.4" to "@babel/helper-split-export-declaration@7.7.4" warning "@babel/core#@babel/traverse#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4" error "heroku#@oclif/plugin-help" not installed warning "react-dnd#@types/hoist-non-react-statics#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9" warning "@types/react-router-dom#@types/react-router#@types/react@*" could be deduped from "16.9.9" to "@types/react@16.9.9" warning "@graphql-codegen/cli#graphql-tag-pluck#@babel/traverse@^7.4.4" could be deduped from "7.7.4" to "@babel/traverse@7.7.4" warning "@graphql-codegen/cli#graphql-tag-pluck#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@rails/webpacker#@babel/plugin-proposal-object-rest-spread#@babel/plugin-syntax-object-rest-spread@^7.2.0" could be deduped from "7.7.4" to "@babel/plugin-syntax-object-rest-spread@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-async-generator-functions@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-async-generator-functions@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-dynamic-import@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-dynamic-import@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-json-strings@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-json-strings@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-optional-catch-binding@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-optional-catch-binding@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-unicode-property-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-proposal-unicode-property-regex@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-async-generators@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-async-generators@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-json-strings@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-json-strings@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-optional-catch-binding@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-optional-catch-binding@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-syntax-top-level-await@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-top-level-await@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-arrow-functions@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-arrow-functions@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-async-to-generator@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-async-to-generator@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-block-scoped-functions@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-block-scoped-functions@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-block-scoping@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-block-scoping@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-classes@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-classes@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-computed-properties@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-computed-properties@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-dotall-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-dotall-regex@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-duplicate-keys@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-duplicate-keys@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-exponentiation-operator@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-exponentiation-operator@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-for-of@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-for-of@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-function-name@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-function-name@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-literals@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-member-expression-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-member-expression-literals@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-modules-systemjs@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-modules-systemjs@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-modules-umd@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-modules-umd@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-named-capturing-groups-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-named-capturing-groups-regex@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-new-target@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-new-target@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-object-super@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-object-super@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-parameters@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-parameters@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-property-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-property-literals@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-reserved-words@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-reserved-words@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-shorthand-properties@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-shorthand-properties@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-spread@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-spread@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-sticky-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-sticky-regex@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-template-literals@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-template-literals@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-typeof-symbol@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-typeof-symbol@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-transform-unicode-regex@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-transform-unicode-regex@7.7.4" warning "quill-magic-url#@babel/preset-env#@babel/plugin-transform-regenerator@^7.7.4" could be deduped from "7.7.5" to "@babel/plugin-transform-regenerator@7.7.5" warning "prettier-eslint#vue-eslint-parser#eslint@>=3.9.0" could be deduped from "6.5.1" to "eslint@6.5.1" warning "@babel/core#@babel/traverse#@babel/helper-function-name#@babel/helper-get-function-arity@^7.0.0" could be deduped from "7.7.4" to "@babel/helper-get-function-arity@7.7.4" warning "@babel/core#@babel/traverse#@babel/helper-function-name#@babel/template@^7.1.0" could be deduped from "7.7.4" to "@babel/template@7.7.4" warning "@babel/core#@babel/traverse#@babel/helper-function-name#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/core#@babel/traverse#@babel/helper-split-export-declaration#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/helpers#@babel/template#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name@^7.1.0" could be deduped from "7.7.4" to "@babel/helper-function-name@7.7.4" warning "graphql-tag-pluck#@babel/traverse#@babel/helper-split-export-declaration@^7.4.4" could be deduped from "7.7.4" to "@babel/helper-split-export-declaration@7.7.4" warning "graphql-tag-pluck#@babel/traverse#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/helpers#@babel/traverse#@babel/helper-function-name@^7.1.0" could be deduped from "7.7.4" to "@babel/helper-function-name@7.7.4" warning "@babel/helpers#@babel/traverse#@babel/helper-split-export-declaration@^7.4.4" could be deduped from "7.7.4" to "@babel/helper-split-export-declaration@7.7.4" warning "@babel/helpers#@babel/traverse#@babel/types@^7.6.3" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-async-generator-functions#@babel/plugin-syntax-async-generators@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-async-generators@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-json-strings#@babel/plugin-syntax-json-strings@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-json-strings@7.7.4" warning "@rails/webpacker#@babel/preset-env#@babel/plugin-proposal-optional-catch-binding#@babel/plugin-syntax-optional-catch-binding@^7.7.4" could be deduped from "7.7.4" to "@babel/plugin-syntax-optional-catch-binding@7.7.4" error "heroku#@oclif/plugin-help#@oclif/command" not installed warning "webpack#terser-webpack-plugin#terser@^4.1.2" could be deduped from "4.4.2" to "terser@4.4.2" warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name#@babel/helper-get-function-arity@^7.0.0" could be deduped from "7.7.4" to "@babel/helper-get-function-arity@7.7.4" warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name#@babel/template@^7.1.0" could be deduped from "7.7.4" to "@babel/template@7.7.4" warning "graphql-tag-pluck#@babel/traverse#@babel/helper-function-name#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/helpers#@babel/traverse#@babel/helper-function-name#@babel/helper-get-function-arity@^7.0.0" could be deduped from "7.7.4" to "@babel/helper-get-function-arity@7.7.4" warning "@babel/helpers#@babel/traverse#@babel/helper-function-name#@babel/template@^7.1.0" could be deduped from "7.7.4" to "@babel/template@7.7.4" warning "@babel/helpers#@babel/traverse#@babel/helper-function-name#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/core#@babel/helper-function-name#@babel/helper-get-function-arity#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "graphql-tag-pluck#@babel/traverse#@babel/helper-split-export-declaration#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/helpers#@babel/traverse#@babel/helper-split-export-declaration#@babel/types@^7.4.4" could be deduped from "7.7.4" to "@babel/types@7.7.4" error "heroku#@oclif/plugin-help#@oclif/command#@oclif/config" not installed error "heroku#@oclif/plugin-help#@oclif/command#@oclif/plugin-help" not installed error "heroku#@oclif/plugin-help#@oclif/command#semver" not installed error "@babel/plugin-proposal-unicode-property-regex#@babel/helper-create-regexp-features-plugin" not installed warning "graphql-tag-pluck#@babel/helper-function-name#@babel/helper-get-function-arity#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "@babel/helpers#@babel/helper-function-name#@babel/helper-get-function-arity#@babel/types@^7.0.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" warning "graphql-tag-pluck#@babel/helper-function-name#@babel/template#@babel/types@^7.6.0" could be deduped from "7.7.4" to "@babel/types@7.7.4" error "heroku#@oclif/plugin-help#@oclif/config#tslib" not installed info Found 88 warnings. error Found 10 errors. info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.