Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error terser-webpack-plugin from 5.3.1 to 5.3.2 #493

Closed
Wellers0n opened this issue Jun 2, 2022 · 1 comment
Closed

Error terser-webpack-plugin from 5.3.1 to 5.3.2 #493

Wellers0n opened this issue Jun 2, 2022 · 1 comment

Comments

@Wellers0n
Copy link

Bug report

➜  project git:(main) yarn start
yarn run v1.22.10
$ yarn workspace @project graphql:webpack
$ webpack --watch --progress --config webpack.config.graphql.js
[webpack-cli] Failed to load '/Users/project/webpack.config.graphql.js' config
[webpack-cli] Error: Cannot find module '/Users/projects/node_modules/terser-webpack-plugin/dist/index.js'. Please verify that the package.json has a valid "project" entry
    at tryPackage (node:internal/modules/cjs/loader:353:19)
    at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/projects/packages/webpack/src/webpackProdConfig.js:4:22)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
  code: 'MODULE_NOT_FOUND',
  path: '/Users/projects/node_modules/terser-webpack-plugin/package.json',
  requestPath: 'terser-webpack-plugin'
}

Expected Behavior

start server or frontend with yarn start

How Do We Reproduce?

update terser-webpack-plugin from 5.3.1 to 5.3.2

Please paste the results of npx webpack-cli info here, and mention other relevant information

[webpack-cli] Failed to load '/Users/project/webpack.config.graphql.js' config
[webpack-cli] Error: Cannot find module '/Users/projects/node_modules/terser-webpack-plugin/dist/index.js'. Please verify that the package.json has a valid "project" entry
@alexander-akait
Copy link
Member

Please look at recently issues, duplicate #491, just update to 5.3.3

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

No branches or pull requests

2 participants