Skip to content

Error: Cannot find module 'extract-text-webpack-plugin' with [email protected] #214

@thangngoc89

Description

@thangngoc89
$ preact -v 
1.3.0

$ npm -v 
5.2.0

Error:

Error: Cannot find module 'extract-text-webpack-plugin'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/khoa/web/mui/node_modules/preact-cli/lib/lib/webpack/webpack-base-config.js:13:33)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/khoa/web/mui/node_modules/preact-cli/lib/lib/webpack/webpack-client-config.js:39:26)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/khoa/web/mui/node_modules/preact-cli/lib/lib/webpack/run-webpack.js:27:28)
    at Module._compile (module.js:569:30)

Reproduce:

  • Init new project preact create test && cd $_
  • npm start

P/s:

This only happens with [email protected]. For some reason, node can't resolve it

❯ npm ls extract-text-webpack-plugin
[email protected] /home/khoa/web/mui
└─┬ [email protected]
  └─┬ @webpack-blocks/[email protected]
    └── [email protected] 

My rule of thumb is if you use it, you must install it first. Thoughts @developit @lukeed ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions