dash-component-boilerplate icon indicating copy to clipboard operation
dash-component-boilerplate copied to clipboard

Type Error with Example

Open chschoenenberger opened this issue 6 years ago • 4 comments

Currently I am unable to run the vanilla boilerplate without any changes. I run cookiecutter with all default options except for the author name and email address. If I run "npm run start" on the newly generated project, it should display the example input component. However, I get the following error:

TypeError: res.getHeader is not a function at processRequest (C:\source\my_dash_component\node_modules\webpack-dev-middleware\lib\middleware.js:82:18) at cbs.forEach (C:\source\my_dash_component\node_modules\webpack-dev-middleware\lib\context.js:52:9) at Array.forEach () at process.nextTick (C:\source\my_dash_component\node_modules\webpack-dev-middleware\lib\context.js:51:11) at process._tickCallback (internal/process/next_tick.js:61:11) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: webpack-serve ./webpack.serve.config.js --open npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start 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! C:\Users\myUser\AppData\Roaming\npm-cache_logs\2019-03-13T10_04_36_318Z-debug.log

I assume there's something wrong with the dependencies. However, I am unable to resolve it myself.

chschoenenberger avatar Mar 13 '19 10:03 chschoenenberger

Hi! Did you make any progress resolving this error? I'm running into the same issue. Thanks!

lavenderca avatar Mar 20 '19 13:03 lavenderca

Exactly the same problem:

TypeError: res.getHeader is not a function at processRequest (/Users/thomas/dash/composants_dash/node_modules/webpack-dev-middleware/lib/middleware.js:82:18) at cbs.forEach (/Users/thomas/dash/composants_dash/node_modules/webpack-dev-middleware/lib/context.js:52:9) at Array.forEach () at process.nextTick (/Users/thomas/dash/composants_dash/node_modules/webpack-dev-middleware/lib/context.js:51:11) at process._tickCallback (internal/process/next_tick.js:61:11) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: webpack-serve ./webpack.serve.config.js --open npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start 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/thomas/.npm/_logs/2019-03-22T21_03_22_508Z-debug.log

dolun avatar Mar 22 '19 21:03 dolun

Had the same issue on my end. npm install [email protected] fixed this for me...hope it works for you!

As a side note, adding a package-lock.json to the cookiecutter would be able to fix this.

mbkupfer avatar Mar 27 '19 19:03 mbkupfer

I have the same error and the npm install [email protected] didn't work for me. Any other solutions? Thanks!

oipotty avatar Apr 22 '19 21:04 oipotty