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

TypeError on build - Cannot read property 'emit' of undefined at CopyPlugin.apply (/opt/get-me-a-date/node_modules/copy-webpack-plugin/dist/index.js:55:20) #1242

Open
MaxZhuravlev opened this issue Jun 23, 2019 · 0 comments

Comments

@MaxZhuravlev
Copy link

After npm run build getting this error:

Step 22/31 : RUN npm run compile
 ---> Running in bc2167a7fb37

> get-me-a-date@0.0.0 compile /opt/get-me-a-date
> npm run clean && npm run webpack


> get-me-a-date@0.0.0 clean /opt/get-me-a-date
> rm -rf coverage && rm -rf tmp/web


> get-me-a-date@0.0.0 webpack /opt/get-me-a-date
> webpack -p

/opt/get-me-a-date/node_modules/webpack/bin/webpack.js:348
			throw err;
			^

TypeError: Cannot read property 'emit' of undefined
    at CopyPlugin.apply (/opt/get-me-a-date/node_modules/copy-webpack-plugin/dist/index.js:55:20)
    at Compiler.apply (/opt/get-me-a-date/node_modules/tapable/lib/Tapable.js:375:16)
    at webpack (/opt/get-me-a-date/node_modules/webpack/lib/webpack.js:33:19)
    at processOptions (/opt/get-me-a-date/node_modules/webpack/bin/webpack.js:335:15)
    at yargs.parse (/opt/get-me-a-date/node_modules/webpack/bin/webpack.js:396:2)
    at Object.Yargs.self.parse (/opt/get-me-a-date/node_modules/webpack/node_modules/yargs/yargs.js:533:18)
    at Object.<anonymous> (/opt/get-me-a-date/node_modules/webpack/bin/webpack.js:152:7)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! get-me-a-date@0.0.0 webpack: `webpack -p`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the get-me-a-date@0.0.0 webpack script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /opt/get-me-a-date/.npm/_logs/2019-06-23T08_25_33_705Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! get-me-a-date@0.0.0 compile: `npm run clean && npm run webpack`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the get-me-a-date@0.0.0 compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /opt/get-me-a-date/.npm/_logs/2019-06-23T08_25_33_730Z-debug.log
@MaxZhuravlev MaxZhuravlev changed the title TypeError on build - Cannot read property 'emit' of undefined TypeError on build - Cannot read property 'emit' of undefined at CopyPlugin.apply (/opt/get-me-a-date/node_modules/copy-webpack-plugin/dist/index.js:55:20) Jun 23, 2019
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

1 participant