Skip to content

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

Closed
@rajkgoel

Description

@rajkgoel

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.

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