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

Cannot resolve module 'webpack-hot-middleware/client' #205

Closed
testerez opened this issue May 19, 2016 · 2 comments
Closed

Cannot resolve module 'webpack-hot-middleware/client' #205

testerez opened this issue May 19, 2016 · 2 comments

Comments

@testerez
Copy link
Contributor

testerez commented May 19, 2016

I tried to install it on an existing project. I followed the Getting Started guide but I get this error:

webpack built e97812b8f67c6951ffa6 in 636ms
Hash: e97812b8f67c6951ffa6
Version: webpack 1.13.0
Time: 636ms
            Asset    Size  Chunks             Chunk Names
preview.bundle.js  470 kB       0  [emitted]  preview
manager.bundle.js  635 kB       1  [emitted]  manager
chunk    {0} preview.bundle.js (preview) 165 kB [rendered]
    [0] multi preview 52 bytes {0} [built] [2 errors]
    [1] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/util.js 10.5 kB {0} [built]
    [2] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/array-set.js 2.76 kB {0} [built]
    [3] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/base64-vlq.js 4.71 kB {0} [built]
    [4] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/source-map-generator.js 13.4 kB {0} [built]
    [5] (webpack)/~/node-libs-browser/~/buffer/index.js 42.8 kB {0} [built]
    [7] ./~/@kadira/storybook/dist/server/error_enhancements.js 340 bytes {0} [built]
    [8] ./~/@kadira/storybook/~/stack-source-map/index.js 12.8 kB {0} [built]
    [9] ./~/@kadira/storybook/~/stack-source-map/~/path-browserify/index.js 6.18 kB {0} [built]
   [10] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/base64.js 1.54 kB {0} [built]
   [11] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/binary-search.js 4.25 kB {0} [built]
   [12] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/mapping-list.js 2.34 kB {0} [built]
   [13] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/quick-sort.js 3.62 kB {0} [built]
   [14] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/source-map-consumer.js 38.4 kB {0} [built]
   [15] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/source-node.js 13.5 kB {0} [built]
   [16] ./~/@kadira/storybook/~/stack-source-map/~/source-map/source-map.js 405 bytes {0} [built]
   [17] ./~/@kadira/storybook/~/stack-source-map/register.js 16 bytes {0} [built]
   [18] (webpack)/~/node-libs-browser/~/buffer/~/base64-js/lib/b64.js 3.57 kB {0} [built]
   [19] (webpack)/~/node-libs-browser/~/buffer/~/ieee754/index.js 2.05 kB {0} [built]
   [20] (webpack)/~/node-libs-browser/~/buffer/~/isarray/index.js 132 bytes {0} [built]
   [21] (webpack)/~/node-libs-browser/~/process/browser.js 2.12 kB {0} [built]
chunk    {1} manager.bundle.js (manager) 256 kB [rendered]
    [0] multi manager 28 bytes {1} [built]
    [6] ./~/@kadira/storybook/dist/manager.js 256 kB {1} [built]

ERROR in multi preview
Module not found: Error: Cannot resolve module 'webpack-hot-middleware/client' in /Users/testerez/projects/eventshopper
 @ multi preview

ERROR in multi preview
Module not found: Error: Cannot resolve module 'babel' in /Users/testerez/projects/eventshopper
 @ multi preview

I then tried to do npm install webpack-hot-middleware babel but now I get this error:

webpack built 8ff81b370e86bd459375 in 699ms
Hash: 8ff81b370e86bd459375
Version: webpack 1.13.0
Time: 699ms
            Asset    Size  Chunks             Chunk Names
preview.bundle.js  657 kB       0  [emitted]  preview
manager.bundle.js  635 kB       1  [emitted]  manager
chunk    {0} preview.bundle.js (preview) 239 kB [rendered]
    [0] multi preview 52 bytes {0} [built] [1 error]
    [1] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/util.js 10.5 kB {0} [built]
    [2] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/array-set.js 2.76 kB {0} [built]
    [3] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/base64-vlq.js 4.71 kB {0} [built]
    [4] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/source-map-generator.js 13.4 kB {0} [built]
    [5] (webpack)/~/node-libs-browser/~/buffer/index.js 42.8 kB {0} [built]
    [6] ./~/webpack-hot-middleware/~/html-entities/lib/html5-entities.js 49 kB {0} [built]
    [8] ./~/@kadira/storybook/dist/server/error_enhancements.js 340 bytes {0} [built]
    [9] ./~/@kadira/storybook/~/stack-source-map/index.js 12.8 kB {0} [built]
   [10] ./~/@kadira/storybook/~/stack-source-map/~/path-browserify/index.js 6.18 kB {0} [built]
   [11] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/base64.js 1.54 kB {0} [built]
   [12] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/binary-search.js 4.25 kB {0} [built]
   [13] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/mapping-list.js 2.34 kB {0} [built]
   [14] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/quick-sort.js 3.62 kB {0} [built]
   [15] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/source-map-consumer.js 38.4 kB {0} [built]
   [16] ./~/@kadira/storybook/~/stack-source-map/~/source-map/lib/source-node.js 13.5 kB {0} [built]
   [17] ./~/@kadira/storybook/~/stack-source-map/~/source-map/source-map.js 405 bytes {0} [built]
   [18] ./~/@kadira/storybook/~/stack-source-map/register.js 16 bytes {0} [built]
   [19] (webpack)/buildin/module.js 251 bytes {0} [built]
   [20] (webpack)/~/node-libs-browser/~/buffer/~/base64-js/lib/b64.js 3.57 kB {0} [built]
   [21] (webpack)/~/node-libs-browser/~/buffer/~/ieee754/index.js 2.05 kB {0} [built]
   [22] (webpack)/~/node-libs-browser/~/buffer/~/isarray/index.js 132 bytes {0} [built]
   [23] (webpack)/~/node-libs-browser/~/process/browser.js 2.12 kB {0} [built]
   [24] ./~/webpack-hot-middleware/client-overlay.js 1.73 kB {0} [built]
   [25] ./~/webpack-hot-middleware/client.js 4.18 kB {0} [built]
   [26] ./~/webpack-hot-middleware/~/ansi-html/index.js 4.02 kB {0} [built]
   [27] ./~/webpack-hot-middleware/~/html-entities/index.js 231 bytes {0} [built]
   [28] ./~/webpack-hot-middleware/~/html-entities/lib/html4-entities.js 6.57 kB {0} [built]
   [29] ./~/webpack-hot-middleware/~/html-entities/lib/xml-entities.js 2.98 kB {0} [built]
   [30] ./~/webpack-hot-middleware/~/strip-ansi/index.js 161 bytes {0} [built]
   [31] ./~/webpack-hot-middleware/~/strip-ansi/~/ansi-regex/index.js 135 bytes {0} [built]
   [32] ./~/webpack-hot-middleware/process-update.js 3.88 kB {0} [built]
chunk    {1} manager.bundle.js (manager) 256 kB [rendered]
    [0] multi manager 28 bytes {1} [built]
    [7] ./~/@kadira/storybook/dist/manager.js 256 kB {1} [built]

ERROR in The node API for `babel` has been moved to `babel-core`.
 @ multi preview

Am I doing something wrong?

node -v && npm -v
v4.4.2
2.15.0
@arunoda
Copy link
Member

arunoda commented May 20, 2016

@arunoda arunoda closed this as completed May 20, 2016
@testerez
Copy link
Contributor Author

In fact it worked, thanks

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