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

Webpack fails when testing extension #26

Open
OctaneInteractive opened this issue Apr 19, 2019 · 3 comments
Open

Webpack fails when testing extension #26

OctaneInteractive opened this issue Apr 19, 2019 · 3 comments

Comments

@OctaneInteractive
Copy link

OctaneInteractive commented Apr 19, 2019

Hi, I'm running this on Mac OS X 10.13.6 with Node v10.10.0.

Using the base installation of the template, I ran npm run dev and got a warning:

{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.

After that, making hot changes worked.

However, when:

  1. I loaded the extension as unpacked at: "project/build";
  2. clicked the button in the web browser;
  3. and then clicked the "New tab" button, I got:

internal/streams/legacy.js:57
throw er; // Unhandled stream error in pipe.
^

Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:111:27)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: webpack --config ./core/webpack.dev.js --hide-modules
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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! /Users/macbookpro/.npm/_logs/2019-04-19T10_05_16_155Z-debug.log

Where the debug is:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/10.10.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle [email protected]predev: [email protected]
6 info lifecycle [email protected]
dev: [email protected]
7 verbose lifecycle [email protected]dev: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
dev: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/path_to_server/project/node_modules/.bin:/Users/macbookpro/bin:/usr/local/bin:/usr/local/mysql/bin:/Users/macbookpro/.composer/vendor/bin:/usr/local/ec2/ec2-api-tools-1.7.5.1/bin:/usr/local/opt/[email protected]/sbin:/usr/local/opt/[email protected]/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
9 verbose lifecycle [email protected]dev: CWD: /path_to_server/project
10 silly lifecycle [email protected]
dev: Args: [ '-c',
10 silly lifecycle 'webpack --config ./core/webpack.dev.js --hide-modules' ]
11 silly lifecycle [email protected]dev: Returned: code: 1 signal: null
12 info lifecycle [email protected]
dev: Failed to exec dev script
13 verbose stack Error: [email protected] dev: webpack --config ./core/webpack.dev.js --hide-modules
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid [email protected]
15 verbose cwd /path_to_server/project
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/Cellar/node/10.10.0/bin/node" "/usr/local/bin/npm" "run" "dev"
18 verbose node v10.10.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] dev: webpack --config ./core/webpack.dev.js --hide-modules
22 error Exit status 1
23 error Failed at the [email protected] dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

I'm able to start Webpack up again, but it dies during testing, which is a shame.

@OctaneInteractive
Copy link
Author

OctaneInteractive commented Apr 19, 2019

I opened the DevTools in Chrome and found a lot of errors.
Screen Shot 2019-04-19 at 13 08 43

@OctaneInteractive OctaneInteractive changed the title Webpack fails during testing extension Webpack fails when testing extension Apr 24, 2019
@elkelk
Copy link

elkelk commented May 21, 2019

I got this working dropping by back to node v8.16.0

@OctaneInteractive
Copy link
Author

Interesting, but a downgrade wouldn't be viable for me.

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