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

npm -i does not install a 'src' directory #82

Closed
bahtou opened this issue Aug 31, 2021 · 0 comments · Fixed by #92
Closed

npm -i does not install a 'src' directory #82

bahtou opened this issue Aug 31, 2021 · 0 comments · Fixed by #92
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bahtou
Copy link

bahtou commented Aug 31, 2021

Following the instructions in the README:

npm i --save-dev @types/error-overlay-webpack-plugin

Then in my webpack config I do:

import ErrorOverlayPlugin from 'error-overlay-webpack-plugin';
...
plugins: [
    new ErrorOverlayPlugin(),

When I start the webpack-dev-server I get this error:

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at adjustEntry (/website/node_modules/error-overlay-webpack-plugin/src/index.js:64:12)
    at /website/node_modules/error-overlay-webpack-plugin/src/index.js:65:26
    at Array.forEach (<anonymous>)
    at adjustEntry (/website/node_modules/error-overlay-webpack-plugin/src/index.js:64:24)
    at /website/node_modules/error-overlay-webpack-plugin/src/index.js:65:26
    at Array.forEach (<anonymous>)
    at adjustEntry (/website/node_modules/error-overlay-webpack-plugin/src/index.js:64:24)
    at /website/node_modules/error-overlay-webpack-plugin/src/index.js:21:7
    at Hook.eval (eval at create (/website/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:7:16)

I look into the node_modules/error-overlay-webpack-plugin folder but I only find dist and not src.

@gregberge gregberge added bug Something isn't working help wanted Extra attention is needed labels Sep 12, 2021
gregberge added a commit that referenced this issue Feb 12, 2022
gregberge added a commit that referenced this issue Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants