Base solution for your next web application
Open Closed

Cannot find module 'acorn-dynamic-import' #6569


User avatar
0
kalidarscope created

Getting the below error while running the npm start command.

Cannot find module 'acorn-dynamic-import'
Error: Cannot find module 'acorn-dynamic-import'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (D:\PROJECT\Project_11022019\src\Project.Web.Host\node_modules\webpack\lib\Parser.js:9:15)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `ng serve --host 0.0.0.0 --port 4200`
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.

2 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Run yarn.

  • User Avatar
    0
    kalidarscope created

    It is not fixed if we run the yarn. I have use "yarn add webpack" command to fix this.