Skip to content

The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with: /app/app.module.ts' is not a module. #1803

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

Closed
rajkgoel opened this issue Aug 22, 2016 · 7 comments

Comments

@rajkgoel
Copy link

rajkgoel commented Aug 22, 2016

Please provide us with the following information:

  1. OS? Windows 7 Enterprise
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:
    angular-cli: 1.0.0-beta.10
    node: 4.4.7
    os: win32 ia32
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    Initially it was created using CLI, after which did the following upgrades -
    Angular RC 4 to RC 5 (as detailed in https://angular.io/docs/ts/latest/cookbook/rc4-to-rc5.html)
    Angular CLI
    TypeScript from 1.8.10 to 2.0.0 Beta
  4. The log given by the failure. Normally this include a stack trace and some
    more information.
    The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
    Error: Typescript found the following errors:
    C:/Projects/Angular2/TestProject/tmp/broccoli_type_script_compiler-input
    _base_path-Oot0D8OL.tmp/0/src/main.ts (4, 40): File 'C:/Projects/Angular2/IrScen
    arioBuilder/tmp/broccoli_type_script_compiler-input_base_path-Oot0D8OL.tmp/0/src
    /app/app.module.ts' is not a module.
    at BroccoliTypeScriptCompiler._doIncrementalBuild (C:\Projects\Angular2\IrSc
    enarioBuilder\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:120:1
    9)
    at BroccoliTypeScriptCompiler.build (C:\Projects\Angular2\TestProject
    node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:43:10)
    at C:\Projects\Angular2\TestProject\node_modules\angular-cli\node_modu
    les\broccoli-caching-writer\index.js:152:21
    at lib$rsvp$$internal$$tryCatch (C:\Projects\Angular2\TestProject\node
    modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (C:\Projects\Angular2\IrScenarioBuilde
    r\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
    at lib$rsvp$$internal$$publish (C:\Projects\Angular2\TestProject\node

    modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
    at lib$rsvp$asap$$flush (C:\Projects\Angular2\TestProject\node_modules
    \angular-cli\node_modules\rsvp\dist\rsvp.js:1198:9)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)

The broccoli plugin was instantiated at:
at BroccoliTypeScriptCompiler.Plugin (C:\Projects\Angular2\TestProject
\node_modules\angular-cli\node_modules\broccoli-plugin\index.js:10:31)
at BroccoliTypeScriptCompiler.CachingWriter [as constructor](C:ProjectsAn
gular2TestProjectnode_modulesangular-clinode_modulesbroccoli-caching-
writerindex.js:21:10)
at BroccoliTypeScriptCompiler (C:\Projects\Angular2\TestProject\node_m
odules\angular-cli\lib\broccoli\broccoli-typescript.js:27:10)
at Angular2App._getTsTree (C:\Projects\Angular2\TestProject\node_modul
es\angular-cli\lib\broccoli\angular2-app.js:331:18)
at Angular2App._buildTree (C:\Projects\Angular2\TestProject\node_modul
es\angular-cli\lib\broccoli\angular2-app.js:124:23)
at new Angular2App (C:\Projects\Angular2\TestProject\node_modules\angu
lar-cli\lib\broccoli\angular2-app.js:53:23)
at module.exports (C:\Projects\Angular2\TestProject\angular-cli-build.
js:10:10)
at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\Projects\Angula
r2\TestProject\node_modules\angular-cli\node_modules\angular-cli\lib\model
s\builder.js:55:19)
at Class.module.exports.Task.extend.init (C:\Projects\Angular2\IrScenarioBui
lder\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:89:
10)
at new Class (C:\Projects\Angular2\TestProject\node_modules\angular-cl
i\node_modules\core-object\core-object.js:18:12)
at Class.module.exports.Task.extend.run (C:\Projects\Angular2\IrScenarioBuil
der\node_modules\angular-cli\node_modules\angular-cli\lib\tasks\build.js:15:19)
at C:\Projects\Angular2\TestProject\node_modules\angular-cli\node_modu
les\angular-cli\lib\commands\build.js:32:24
at lib$rsvp$$internal$$tryCatch (C:\Projects\Angular2\TestProject\node
modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (C:\Projects\Angular2\IrScenarioBuilde
r\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (C:\Projects\Angular2\TestProject\node

modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (C:\Projects\Angular2\TestProject\node_modules
\angular-cli\node_modules\rsvp\dist\rsvp.js:1198:9)

  1. Mention any other details that might be useful.

Received following errors/warnings while upgrading the Angular CLI -
C:\Projects\Angular2\TestProject>npm install angular-cli @angular/tsc-wrap
ped --save-dev
npm WARN peerDependencies The peer dependency typescript@^1.9.0-dev included fro
m @angular/tsc-wrapped will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerD
ependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it
explicitly.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install th
e latest version of pug instead of jade
npm WARN deprecated [email protected]: This package has been discontinued in fav
or of lodash@^4.0.0.
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie h
ttps://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use
@segment/to-iso-string instead.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x8
6)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "angular-cli" "@AnGula
r/tsc-wrapped" "--save-dev"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package [email protected] does not satisfy its siblings
' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants typescript@>=1.7.3
npm ERR! peerinvalid Peer @angular/[email protected] wants typescript@^1.9.0-dev

npm ERR! Please include the following file with any support request:
npm ERR! C:\Projects\Angular2\TestProject\npm-debug.log


Thanks! We'll be in touch soon.

@deebloo
Copy link
Contributor

deebloo commented Aug 22, 2016

what version of npm are you using?

@rajkgoel
Copy link
Author

npm: '2.15.8',
ares: '1.10.1-DEV',
http_parser: '2.5.2',
icu: '56.1',
modules: '46',
node: '4.4.7',
openssl: '1.0.2h',
uv: '1.8.0',
v8: '4.5.103.36',
zlib: '1.2.8' }

On Mon, Aug 22, 2016 at 7:59 AM, Danny Blue [email protected]
wrote:

what version of npm are you using?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1803 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AT7Co5Bl1k_NY5UutvvQi3zTE7zjdFs3ks5qiZ0qgaJpZM4Jp0lW
.

@deebloo
Copy link
Contributor

deebloo commented Aug 22, 2016

try updating to npm 3 and then try reinstalling and see if you still get errors

@rajkgoel
Copy link
Author

Still the same issue with the upgraded npm version -

npm: '3.10.6',
ares: '1.10.1-DEV',
http_parser: '2.5.2',
icu: '56.1',
modules: '46',
node: '4.4.7',
openssl: '1.0.2h',
uv: '1.8.0',
v8: '4.5.103.36',
zlib: '1.2.8' }

Build failed.
The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: Typescript found the following errors:
C:/Projects/Angular2/TestProject/tmp/broccoli_type_script_compiler-input
_base_path-49aWhEbk.tmp/0/src/main.ts (4, 40): File 'C:/Projects/Angular2/IrScen
arioBuilder/tmp/broccoli_type_script_compiler-input_base_path-49aWhEbk.tmp/0/src
/app/app.module.ts' is not a module.
at BroccoliTypeScriptCompiler._doIncrementalBuild (C:\Projects\Angular2\IrSc
enarioBuilder\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:120:1
9)
at BroccoliTypeScriptCompiler.build (C:\Projects\Angular2\TestProject
node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:43:10)
at C:\Projects\Angular2\TestProject\node_modules\angular-cli\node_modu
les\broccoli-caching-writer\index.js:152:21
at lib$rsvp$$internal$$tryCatch (C:\Projects\Angular2\TestProject\node
modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (C:\Projects\Angular2\IrScenarioBuilde
r\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (C:\Projects\Angular2\TestProject\node

modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (C:\Projects\Angular2\TestProject\node_modules
\angular-cli\node_modules\rsvp\dist\rsvp.js:1198:9)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)

The broccoli plugin was instantiated at:
at BroccoliTypeScriptCompiler.Plugin (C:\Projects\Angular2\TestProject
\node_modules\angular-cli\node_modules\broccoli-plugin\index.js:10:31)
at BroccoliTypeScriptCompiler.CachingWriter [as constructor](C:ProjectsAn
gular2TestProjectnode_modulesangular-clinode_modulesbroccoli-caching-
writerindex.js:21:10)
at BroccoliTypeScriptCompiler (C:\Projects\Angular2\TestProject\node_m
odules\angular-cli\lib\broccoli\broccoli-typescript.js:27:10)
at Angular2App._getTsTree (C:\Projects\Angular2\TestProject\node_modul
es\angular-cli\lib\broccoli\angular2-app.js:331:18)
at Angular2App._buildTree (C:\Projects\Angular2\TestProject\node_modul
es\angular-cli\lib\broccoli\angular2-app.js:124:23)
at new Angular2App (C:\Projects\Angular2\TestProject\node_modules\angu
lar-cli\lib\broccoli\angular2-app.js:53:23)
at module.exports (C:\Projects\Angular2\TestProject\angular-cli-build.
js:10:10)
at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\Projects\Angula
r2\TestProject\node_modules\angular-cli\node_modules\angular-cli\lib\model
s\builder.js:55:19)
at Class.module.exports.Task.extend.init (C:\Projects\Angular2\IrScenarioBui
lder\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:89:
10)
at new Class (C:\Projects\Angular2\TestProject\node_modules\angular-cl
i\node_modules\core-object\core-object.js:18:12)
at Class.module.exports.Task.extend.run (C:\Projects\Angular2\IrScenarioBuil
der\node_modules\angular-cli\node_modules\angular-cli\lib\tasks\build.js:15:19)
at C:\Projects\Angular2\TestProject\node_modules\angular-cli\node_modu
les\angular-cli\lib\commands\build.js:32:24
at lib$rsvp$$internal$$tryCatch (C:\Projects\Angular2\TestProject\node
modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
at lib$rsvp$$internal$$invokeCallback (C:\Projects\Angular2\IrScenarioBuilde
r\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
at lib$rsvp$$internal$$publish (C:\Projects\Angular2\TestProject\node

modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
at lib$rsvp$asap$$flush (C:\Projects\Angular2\TestProject\node_modules
\angular-cli\node_modules\rsvp\dist\rsvp.js:1198:9)

@filipesilva
Copy link
Contributor

Issue made obsolete by #1455. Please try using the webpack preview version, as we can't really debug Broccolli issues anymore: https://github.com/angular/angular-cli#webpack-preview-release-update

@rajkgoel
Copy link
Author

Thanks for the update, I would check it with webpack.

On Tue, Aug 23, 2016 at 10:14 AM, Filipe Silva [email protected]
wrote:

Issue made obsolete by #1455
#1455. Please try using the
webpack preview version, as we can't really debug Broccolli issues anymore:
https://github.com/angular/angular-cli#webpack-preview-release-update


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1803 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AT7Co6ft4sN9jLNQ4j4SKybDFSTHaIzbks5qiw5JgaJpZM4Jp0lW
.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants