Angular-cli: ALWAYS: cannot find module main-app-shell, unable build or serve

Created on 17 Aug 2016  路  4Comments  路  Source: angular/angular-cli

Please provide us with the following information:

  1. OS? windows 10
  2. Versions. angular-cli: 1.0.0-beta.11-webpack.2
  3. The log:
C:\Users\e.begovic\WebstormProjects\ng\first-app>ng build -prod
**Cannot find module 'C:\Users\e.begovic\WebstormProjects\ng\first-app\src\main-app-shell.ts'**
Error: Cannot find module 'C:\Users\e.begovic\WebstormProjects\ng\first-app\src\main-app-shell.ts'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at new PrerenderWebpackPlugin (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\angular-cli\addon\ng2\utilities\prerender-webpack-plugin.ts:8:27)
    at Object.exports.getWebpackMobileConfigPartial (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\angular-cli\addon\ng2\models\webpack-build-mobile.ts:13:13)
    at new NgCliWebpackConfig (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\angular-cli\addon\ng2\models\webpack-config.ts:18:50)
    at Class.module.exports.Task.extend.run (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\angular-cli\addon\ng2\tasks\build-webpack.ts:15:22)
    at Class.module.exports.Command.extend.run (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\angular-cli\addon\ng2\commands\build.ts:43:26)
    at Class.<anonymous> (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\angular-cli\lib\models\command.js:152:17)
    at lib$rsvp$$internal$$tryCatch (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\rsvp\dist\rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\rsvp\dist\rsvp.js:1048:17)
    at C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\rsvp\dist\rsvp.js:331:11
    at lib$rsvp$asap$$flush (C:\Users\e.begovic\WebstormProjects\ng\first-app\node_modules\rsvp\dist\rsvp.js:1198:9)
    at nextTickCallbackWith0Args (node.js:456:9)
    at process._tickCallback (node.js:385:13)

Thanks

Most helpful comment

Currently mobile support is disabled.

All 4 comments

The current webpack version of the cli does not have the option for the old mobile flag.

Currently mobile support is disabled.

@shippeli mobile flag have to be disable yet ! don't activate it, not ready I think

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JanStureNielsen picture JanStureNielsen  路  3Comments

daBishMan picture daBishMan  路  3Comments

hareeshav picture hareeshav  路  3Comments

naveedahmed1 picture naveedahmed1  路  3Comments

brtnshrdr picture brtnshrdr  路  3Comments