shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 184 forks source link

CRA broken with the latest version you just released (4.1.0) #286

Closed ddolcimascolo closed 2 years ago

ddolcimascolo commented 2 years ago

Hi,

Can you deprecate the version and release a correct one ASAP please? This completely breaks CRA :sweat_smile:

To reproduce

npx create-react-app@latest testing
cd testing
npm start

And you get

> testing@0.1.0 start
> react-scripts start

node:internal/modules/cjs/loader:361
      throw err;
      ^

Error: Cannot find module '/home/david/data/dev/testing/node_modules/webpack-manifest-plugin/dist/index.js'. Please verify that the package.json has a valid "main" 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> (/home/david/data/dev/testing/node_modules/react-scripts/config/webpack.config.js:21:35)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32) {
  code: 'MODULE_NOT_FOUND',
  path: '/home/david/data/dev/testing/node_modules/webpack-manifest-plugin/package.json',
  requestPath: 'webpack-manifest-plugin'
}

Cheers, David

shellscape commented 2 years ago

No. Use the issue template for reporting a bug and provide a valid reproduction.