Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Error while building  #123

@pantonis

Description

@pantonis

Short description of the problem:

Whenever I run ionic build android I get following error

ngc error: Error: Error Cannot write file '.tmp/app/app.component.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/domain/ListingModel.d.ts' because it would overwrite input file.
and a bunch of similar errors

What behavior are you expecting?

Steps to reproduce:
1.
2.
3.

Which @ionic/app-scripts version are you using?
"@ionic/app-scripts": "latest",

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

[09:52:05]  lint finished in 969 ms
[09:52:06]  ngc: Error: Error Cannot write file 'C:/GIT/TestProj/.tmp/app/app.component.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/domain/ListingModel.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/pages/listing-details/listing-details.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/pages/listings/listings.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/pipes/boolFormatterPipe.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/pipes/emptyString.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/services/DataService.d.ts' because it would overwrite input file.
Error Cannot write file 'C:/GIT/TestProj/.tmp/services/SettingsService.d.ts' because it would overwrite input file.
    at Object.check (C:\GIT\TestProj\TestProj.App\node_modules\@angular\tsc-wrapped\src\tsc.js:31:15)
    at Object.main (C:\GIT\TestProj\TestProj.App\node_modules\@angular\tsc-wrapped\src\main.js:26:15)
    at Object.<anonymous> (C:\GIT\TestProj\TestProj.App\node_modules\@angular\compiler-cli\src\main.js:14:9)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)


[09:52:06]  ngc: Compilation failed


[09:52:06]  ngc failed:  NGC encountered an error

[09:52:06]  Error: NGC encountered an error
    at ChildProcess.<anonymous> (C:\GIT\TestProj\TestProj.App\node_modules\@ionic\app-scripts\dist\ngc.js:62:24)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at ChildProcess.cp.emit (C:\GIT\TestProj\TestProj.App\node_modules\cross-spawn\lib\enoent.js:40:29)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

Error running ionic app script "build": Error: NGC encountered an error



npm
 ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm
 ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.



npm ERR! Please include the following file with any support request:
npm ERR!     C:\GIT\TestProj\TestProj.App\npm-debug.log

Caught exception:
 undefined

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions