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-dev-server failing on Node v11.3 due to SPDY module #1592

Closed
1 of 2 tasks
nzapponi opened this issue Dec 7, 2018 · 8 comments
Closed
1 of 2 tasks

webpack-dev-server failing on Node v11.3 due to SPDY module #1592

nzapponi opened this issue Dec 7, 2018 · 8 comments

Comments

@nzapponi
Copy link

nzapponi commented Dec 7, 2018

  • Operating System: macOS v10.14
  • Node Version: v11.3.0
  • NPM Version: 6.4.1
  • webpack Version: 3.5.1
  • webpack-dev-server Version: 2.8.2
  • This is a bug
  • This is a modification request

Code

  > NODE_ENV=development webpack-dev-server --https

Generating SSL Certificate
Project is running at https://localhost:8888/webpack-dev-server/
webpack output is served from /dist
Content not from webpack is served from /Users/nzapponi/Git Repositories/Quip/meeting-scheduler/app/dist
Hash: 5f448c58750683f7e764
Version: webpack 3.5.1
Time: 5245ms
      Asset      Size  Chunks                    Chunk Names
     app.js    959 kB       0  [emitted]  [big]  main
    app.css   11.3 kB       0  [emitted]         main
 app.js.map    1.2 MB       0  [emitted]         main
app.css.map  84 bytes       0  [emitted]         main
   [1] ./node_modules/moment/moment.js 147 kB {0} [built]
  [19] ./node_modules/core-js/modules/_core.js 122 bytes {0} [built]
  [88] ./node_modules/core-js/modules/es6.array.iterator.js 1.12 kB {0} [built]
 [114] ./node_modules/core-js/modules/es6.regexp.exec.js 178 bytes {0} [built]
 [115] ./node_modules/core-js/modules/es6.regexp.flags.js 201 bytes {0} [built]
 [258] multi babel-polyfill quip-apps-compat ./src/root.jsx 52 bytes {0} [built]
 [259] ./node_modules/babel-polyfill/lib/index.js 833 bytes {0} [built]
 [260] (webpack)/buildin/global.js 509 bytes {0} [built]
 [261] ./node_modules/core-js/shim.js 8.22 kB {0} [built]
 [457] ./node_modules/regenerator-runtime/runtime.js 24.1 kB {0} [built]
 [458] ./node_modules/core-js/fn/regexp/escape.js 108 bytes {0} [built]
 [461] ./node_modules/quip-apps-compat/index.js 3.44 kB {0} [built]
 [462] ./src/root.jsx 1.2 kB {0} [built]
 [465] ./src/containers/App/App.js 19.4 kB {0} [built]
 [476] ./src/model.js 6.8 kB {0} [built]
    + 470 hidden modules
Child extract-text-webpack-plugin ../../../Git Repositories/Quip/meeting-scheduler/node_modules/extract-text-webpack-plugin/dist ../../../Git Repositories/Quip/meeting-scheduler/node_modules/css-loader/index.js??ref--1-2!../../../Git Repositories/Quip/meeting-scheduler/node_modules/postcss-loader/lib/index.js??ref--1-3!../../../Git Repositories/Quip/meeting-scheduler/node_modules/less-loader/lib/loader.js!../../../Git Repositories/Quip/meeting-scheduler/src/components/Scheduler/Scheduler.less:
       [0] ./node_modules/css-loader?{"modules":true,"importLoaders":1,"localIdentName":"[name]__[local]"}!./node_modules/postcss-loader/lib?{"plugins":[null]}!./node_modules/less-loader/lib/loader.js!./src/components/Scheduler/Scheduler.less 647 bytes {0} [built]
       [1] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
Child extract-text-webpack-plugin ../../../Git Repositories/Quip/meeting-scheduler/node_modules/extract-text-webpack-plugin/dist ../../../Git Repositories/Quip/meeting-scheduler/node_modules/css-loader/index.js??ref--1-2!../../../Git Repositories/Quip/meeting-scheduler/node_modules/postcss-loader/lib/index.js??ref--1-3!../../../Git Repositories/Quip/meeting-scheduler/node_modules/less-loader/lib/loader.js!../../../Git Repositories/Quip/meeting-scheduler/src/components/dialog/dialog.less:
       [0] ./node_modules/css-loader?{"modules":true,"importLoaders":1,"localIdentName":"[name]__[local]"}!./node_modules/postcss-loader/lib?{"plugins":[null]}!./node_modules/less-loader/lib/loader.js!./src/components/dialog/dialog.less 619 bytes {0} [built]
       [1] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
Child extract-text-webpack-plugin ../../../Git Repositories/Quip/meeting-scheduler/node_modules/extract-text-webpack-plugin/dist ../../../Git Repositories/Quip/meeting-scheduler/node_modules/css-loader/index.js??ref--1-2!../../../Git Repositories/Quip/meeting-scheduler/node_modules/postcss-loader/lib/index.js??ref--1-3!../../../Git Repositories/Quip/meeting-scheduler/node_modules/less-loader/lib/loader.js!../../../Git Repositories/Quip/meeting-scheduler/src/components/Tooltip/Tooltip.less:
       [0] ./node_modules/css-loader?{"modules":true,"importLoaders":1,"localIdentName":"[name]__[local]"}!./node_modules/postcss-loader/lib?{"plugins":[null]}!./node_modules/less-loader/lib/loader.js!./src/components/Tooltip/Tooltip.less 1.14 kB {0} [built]
       [1] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
Child extract-text-webpack-plugin ../../../Git Repositories/Quip/meeting-scheduler/node_modules/extract-text-webpack-plugin/dist ../../../Git Repositories/Quip/meeting-scheduler/node_modules/css-loader/index.js??ref--1-2!../../../Git Repositories/Quip/meeting-scheduler/node_modules/postcss-loader/lib/index.js??ref--1-3!../../../Git Repositories/Quip/meeting-scheduler/node_modules/less-loader/lib/loader.js!../../../Git Repositories/Quip/meeting-scheduler/src/components/Scheduler/Day/Day.less:
       [0] ./node_modules/css-loader?{"modules":true,"importLoaders":1,"localIdentName":"[name]__[local]"}!./node_modules/postcss-loader/lib?{"plugins":[null]}!./node_modules/less-loader/lib/loader.js!./src/components/Scheduler/Day/Day.less 7.07 kB {0} [built]
       [1] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
Child extract-text-webpack-plugin ../../../Git Repositories/Quip/meeting-scheduler/node_modules/extract-text-webpack-plugin/dist ../../../Git Repositories/Quip/meeting-scheduler/node_modules/css-loader/index.js??ref--1-2!../../../Git Repositories/Quip/meeting-scheduler/node_modules/postcss-loader/lib/index.js??ref--1-3!../../../Git Repositories/Quip/meeting-scheduler/node_modules/less-loader/lib/loader.js!../../../Git Repositories/Quip/meeting-scheduler/src/components/Scheduler/Day/Slot/Slot.less:
       [0] ./node_modules/css-loader?{"modules":true,"importLoaders":1,"localIdentName":"[name]__[local]"}!./node_modules/postcss-loader/lib?{"plugins":[null]}!./node_modules/less-loader/lib/loader.js!./src/components/Scheduler/Day/Slot/Slot.less 4.8 kB {0} [built]
       [1] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
webpack: Compiled successfully.
buffer.js:72
class FastBuffer extends Uint8Array {}
^

RangeError: Invalid typed array length: -4095
    at new Uint8Array (<anonymous>)
    at new FastBuffer (buffer.js:72:1)
    at Handle.onStreamRead [as onread] (internal/stream_base_commons.js:121:17)
    at Stream.<anonymous> (/Users/nzapponi/Git Repositories/Quip/meeting-scheduler/node_modules/handle-thing/lib/handle.js:120:12)
    at Stream.emit (events.js:187:15)
    at endReadableNT (/Users/nzapponi/Git Repositories/Quip/meeting-scheduler/node_modules/readable-stream/lib/_stream_readable.js:1010:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1

Expected Behavior

The server should not crash at the first request

Actual Behavior

Webpack compiles successfully but the server crashes at the first request

For Bugs; How can we reproduce the behavior?

Upgrade to Node v11.3 and try to run webpack-dev-server.

For Features; What is the motivation and/or use-case for the feature?

See here: spdy-http2/node-spdy#350

@nzapponi
Copy link
Author

nzapponi commented Dec 7, 2018

spdy-http2/node-spdy#350

@alexander-akait
Copy link
Member

Thanks for issue, maybe we can find workaround

@alexander-akait
Copy link
Member

@nzapponi sorry for delay, problem still exists? if yes, please create minimum reproducible test repo, thanks!

@yi-ge
Copy link
Contributor

yi-ge commented Feb 17, 2019

The bug is fixed. #1660

@yi-ge
Copy link
Contributor

yi-ge commented Feb 17, 2019

@evilebottnawi the same problem. 😄

@alexander-akait
Copy link
Member

Fixed #1660

@cicibobo
Copy link

cicibobo commented Mar 7, 2019

Issue still exist node - v11.11.0, spdy - 4.0.0

webpack: Compiled with warnings.
RangeError: Invalid typed array length: -4095

@TheLarkInn
Copy link
Member

Can you still confirm this @cicibobo?

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

No branches or pull requests

5 participants