Error while building #123
Comments
What happens if you delete the Thanks, |
@danbucholtz |src/ note the d.ts file. Once I deleted this d.ts file and all other d.ts files from pages the problem went away. I am using VS2015 community edition. Why it produces these? |
Ahhh, I think it because it is compiling code on save. We don't support that functionality and it should be disabled in the Thanks, |
I'm going to close this issue, but please let me know how everything is going and if there's anything else we can help get squared away with visual studio. Thanks, |
I abandoned VS for VS code. everything works smoothly now. Thanks |
I have the same problem, I tried with two different projects and didn't work!!! ionic-hello-world@ build /Users/aneudysamparo/[FOLDER] [01:09:30] ionic-app-scripts 0.0.36 npm ERR! Darwin 16.0.0 npm ERR! Please include the following file with any support request: Mind letting us know? https://github.com/driftyco/ionic-cli/issues [FOLDER] aneudysamparo$ ` In tsconfig.json compileOnSave = False; PS... I had Installed Node, Ionic, Cordova all them lastest version. |
Can you paste your Thanks, |
Hello @danbucholtz , |
@aneudysamparo, we are pushing out a fix for this shortly. In the meantime, you can remove Thanks, |
@danbucholtz , I also get the issue (and opened a StackOverflow ) my version is: My tsconfig.json looks like that (no "include" and "compileOnSave:false"):
|
Same problem here! |
@RoyBkker, set declaration to Thanks, |
{ what i have to change in this file |
works for me: { |
Changing declaration to false as shown in abetsagaral's comment fixed it for me. |
Go ahead and update your https://github.com/driftyco/ionic2-app-base/blob/master/tsconfig.json Thanks, |
I have same problem in Visual Studio 2015. And Fix by Installing: npm install @ionic/app-scripts@latest --save-dev |
Thanks @dalbir. I tried your suggestion using VS Code, the issue was resolved. |
@dalbir Thanks problem resolve |
@Omenjay i have the same problem here, im using sublime.. why is it using VS code could resolve this error instead of sublime? |
@markiam11 I was using VS Code integrated terminal to run the npm command. I'm not too sure how sublime works for this similar functionality. You can look at the below post for other alternatives: https://www.themarketingtechnologist.co/how-to-update-an-out-of-date-package-json/ |
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)
The text was updated successfully, but these errors were encountered: