Skip to content

Error is thrown when the example is run. #88

@kimgysen

Description

@kimgysen

When running the example on Mac OSX High Sierra, it throws an error:

Kims-MacBook-Pro-401:example kimgysen$ npm start

webpack-hot-server-middleware-example@0.0.1 start /Users/kimgysen/Documents/zwoop/website/history/webpack-hot-server-middleware/example
npm run start:express

webpack-hot-server-middleware-example@0.0.1 start:express /Users/kimgysen/Documents/zwoop/website/history/webpack-hot-server-middleware/example
node express/index.js

internal/modules/cjs/loader.js:611
throw err;
^

Error: Cannot find module 'require-from-string'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15)
at Function.Module._load (internal/modules/cjs/loader.js:535:25)
at Module.require (internal/modules/cjs/loader.js:663:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/Users/kimgysen/Documents/zwoop/website/history/webpack-hot-server-middleware/src/index.js:5:27)
at Module._compile (internal/modules/cjs/loader.js:734:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:745:10)
at Module.load (internal/modules/cjs/loader.js:626:32)
at tryModuleLoad (internal/modules/cjs/loader.js:566:12)
at Function.Module._load (internal/modules/cjs/loader.js:558:3)

Node version: 11.9.0
I installed the packages using npm install (not using yarn).

I can see the npm package require-from-string in then node_modules folder though.

Note: if the project is not supported anymore, you should mark it as deprecated, as we don't want this to end up in production otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions