-
Notifications
You must be signed in to change notification settings - Fork 12k
Upgrade Angular-cli@webpack and ng build fail #1953
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
Comments
The error message is clear. |
@christiandreher I did it but I got in angular-cli.json exactly the same:
By the way I don't understand why it is describing the version at 1.0.0-beta.11-webpack.2. |
What is the output if you run the following commands from your project root?
It seems like you haven't updated $ npm uninstall -g angular-cli
$ npm cache clean
$ npm install -g angular-cli@webpack And did you read this notice?
(Source) |
1-
2-
Yes I read this notice. however i did not run it on the new project, so I re-created a new project and ran it and it did not change anything: same angular-cli.json |
me too getting the same error for npm ls -g --depth 0 | grep angular-cli +-- [email protected] |
@mavericks065 thats strange. I would say that there is an old binary somewhere, but I can't tell better. I think that you'll have to wait for an official angular-cli member to help you. What you could try until that, is to completely remove all @kethan for what I can tell, this is completely unrelated. |
@mavericks065 I have had the same issue (the length of undefined), but I believe it was fixed by adding environments to your angular-cli.json (especially the source index). Hopefully this would work for you too. { |
@bingneef thanks. I think we made some progress. However when it is building I get errors like: (I don't copy paste all of them because there are too many of them just the firsts). I thought I could solve them with this issue #1901 but did not work.
ERROR in [default] ERROR in [default] ERROR in [default] ERROR in [default] ERROR in [default] ERROR in [default] ERROR in [default] ERROR in [default] /Users/mba/Business/workspace/angular-ionic/iSecretVault_webapp_ng2/node_modules/@angular/common/src/directives/ng_class.d.ts:81:33 |
Are you sure that |
I am facing same problem as @mavericks065. npm ls --depth 0 | grep typescript |
Try fixing the version of typescript to
to
then run |
@christiandreher When I followed bingneef recommendation I got the new errors. Then I changed my typescript version to
as it was recommended but completely forgot to run
now the build works and I get :
Thanks for your help guys. |
It worked. But got issue as mentioned in Issue 19481. |
The problem still exists with
It can be solved by @christiandreher (thanks!) hint to pin the typescript version to 2.0.0. Any help is appreciated, thanks |
Attempted to downgrade typescript to from 2.0.3 to 2.0.0 to fix angular/angular-cli#1953
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
node: 5.6.0
os: darwin x64
I tried to upgrade angular-cli@webpack so I uninstalled it, cleaned and re-installed.
When I ran ng build I got the following stack trace:
Here is my angular-cli.json: (the version of my project is 1.0.0-beta.11-webpack.2 but I don't understand since I followed the procedure I read here )
{
"project": {
"version": "1.0.0-beta.11-webpack.2",
"name": "***************"
},
"apps": [
{
"main": "src/main.ts",
"tsconfig": "src/tsconfig.json",
"mobile": false
}
],
"addons": [],
"packages": [],
"e2e": {
"protractor": {
"config": "config/protractor.conf.js"
}
},
"test": {
"karma": {
"config": "config/karma.conf.js"
}
},
"defaults": {
"prefix": "app",
"sourceDir": "src",
"styleExt": "scss",
"prefixInterfaces": false,
"lazyRoutePrefix": "+"
}
}
Thank you for your help.
The text was updated successfully, but these errors were encountered: