Update packages to resolve dependency conflicts after vulnerabilities. #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After I ran
npm audit fix
I got package dependency conflicts.So I installed all the packages in terminal:
npm install @babel/core @babel/plugin-syntax-dynamic-import @babel/preset-env babel-loader babel-preset-minify webpack webpack-cli webpack-dev-server webpack-merge workbox-webpack-plugin clean-webpack-plugin copy-webpack-plugin css-loader html-webpack-plugin mini-css-extract-plugin style-loader --legacy-peer-deps --save-dev
npm install --save lit-element
and
npm install --save @vaadin/vaadin-text-field @vaadin/vaadin-button @vaadin/vaadin-checkbox @vaadin/vaadin-radio-button
The webpack configs had to be updated regarding new APIs (webpack-merge, copy-webpack-plugin).
Please check especially 'from' 'to' options on
CopyWebpackPlugin
(withoutflatten
option). I'm very new in frontend/JS/webpack etc. :-).P.S. in package.json I didn't change
--env.mode production
to--env mode=production
yet.