-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng beta 30 fails #4425
Comments
Same issue. This only happens when you try to compile a project that was created with an older version of cli. I have not been able to find the cause of this. In the meantime just make new project and copy paste your components etc. to the new project. |
I am receiving the same issue as well after running |
Have you guys tried |
@AmarildoK But I didn't try to compile the project just invoked 'ng help'? |
I got the same result, then tried markgoho's suggestion. After
Continues on for a bit |
I upgraded to .30 on ubuntu 16.04 and created new project
after fixing that I'm stuck with:
In case it matters, running node v7.5.0 and npm v4.2.0 |
I got same issue. update Package.json :
resolve it. I pushed changes to my ng2 D3 scaffold project. |
I made a back up of my source code and package.json / angular-cli.json changes und ran Maybe there will be still some missing dependencies which were dropped by the ng init. Add them to your package.json and re-run |
I followed @dahang instructions and changed the dev dependencies and it works. Though I don't seem to get the warning that dahang describes. |
For me it did not work. I wanted this update as a solution to .ts file recompile issue, but I managed to solve it by downgrading cli to beta 28.3 and webpack to 1.2.4 |
For the warnings indicated by @dahang , I think that line 90 in and line 95 with: Options loader and fallbackLoader are deprecated in a newer version of the library |
There is now a PR to fix the loader warnings: #4435 |
Steps to resolve Issue,
|
I have many projects based on angular-cli. I did upgrade one of them and when I decided to work on the other I had this error. The thing is, I upgraded angular-cli globally from Once I upgraded my second project to |
I updated the package, so the devDep is @angular/cli beta 30. Removed my node_modules folder and did a fresh NPM install. |
The first line says
use |
For anyone getting |
If you go to https://cli.angular.io/ it states there to perform this installation: |
@catull We need to fix cli-dot-angular-dot-io, please do not link there for the time being. |
@catull From what I understand angular cli is moving its npm to @angular/cli so that wont work anymore. Thats why on the angular-cli github they tell you to uninstall/upgrade the cli by doing |
yesterday works, today not works :-/ |
@ewiggin I had a similar (strange) behaviour. But I figured out that I switched from a branch which was not on beta.30 and it probably do that because |
|
I am also getting the |
I think the issue is with projects that have been generated with |
Any idea on what to do for an Ionic 2 project?
…-----------------------------------------From: "Tobias Fuhrimann"
To: "angular/angular-cli"
Cc: "KevinBurton", "Author"
Sent: 09-Feb-2017 06:37:27 +0000
Subject: Re: [angular/angular-cli] ng beta 30 fails (#4425)
I think the issue is with projects that have been generated with
angular-cli and you're trying to operate on with an @angular/cli. For
me, the problem got resolved when I ran ng update [options] (where the
options are the same ones I used during ng new. That updates the
project to use the new @angular/cli which should resolve the problem.
Installing rxjs globally should only be used as a temporary workaround
since it's not a good idea.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub [1], or mute the
thread [2].
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/angular/angular-cli","title":"angular/angular-cli","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open
[3] in
GitHub","url":"https://github.com/angular/angular-cli"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mastertinner
[4] in #4425: I think the issue is with projects that have been
generated with `angular-cli` and you're trying to operate on with an
`@angular/cli`. For me, the problem got resolved when I ran `ng update
[options]` (where the `options` are the same ones I used during `ng
new`. That updates the project to use the new `@angular/cli` which
should resolve the problem. Installing `rxjs` globally should only be
used as a temporary workaround since it's not a good
idea."}],"action":{"name":"View
Issue","url":"#4425 (comment)"}}}
[5]
Links:
------
[1]
#4425 (comment)
[2]
https://github.com/notifications/unsubscribe-auth/AChWbo3ifLrkKBJkHDx9JiMO86lrn1RHks5rarQmgaJpZM4L260z
[3]
https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png
[4] https://github.com/angular/angular-cli
[5]
#4425 (comment)
|
It was worked for me. You can try |
So to summarize what I understand. In order to get beta-30 to work you have to 'npm install rxjs -g' (so you don't get an error with 'ng help')? If you have created a project then use 'ng update' @mastertinner. RIght ? |
As soon as #4473 is merged, all you need is |
My "ng build" was failing too. To fix this I created a temp folder and ran "ng new tempapp". Then I copy/pasted in the updates to tempapp's package.json file to my app's package.json file (careful not to remove any additional packages I've added to customize my app). Then I deleted my node_modules folder. And ran "npm install". That fixed the problem. |
Another approach is to perform It will suggest to over-write many generated files; be extra careful. But, your alternative worked too, and that is all that matters. @KevinBurton Now that there is a newer version out, this is what you can do now: The dependency of Please confirm that this solution works for you. |
@catull FYI, Currently moving from earlier betas, the supported path is creating Going forward, for future RCs and beta(s) if any, specific / manual upgrade steps will be documented in the Changelog. |
The new release (beta.32-3) has fixed these missing deps. |
issue not fixed with beta.32-3, still the same message, but app works fine , |
Like a charm. Explain? |
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. |
OS Windows 7
@angular/cli: 1.0.0-beta.30
'ng help' causes:
Cannot find module 'rxjs/symbol/observable'
Error: Cannot find module 'rxjs/symbol/observable'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at globalScope (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angular\cli
\node_modules@angular\core\bundles\core.umd.js:7:85)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\node_modules@angular\core\bundles\core.umd.js:10:2)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at C:\Users\Kevin\AppData\Roaming\npm\node_modules@angular\cli\node_modules
@angular\compiler\bundles\compiler.umd.js:7:85
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\node_modules@angular\compiler\bundles\compiler.umd.js:10:2)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\node_modules@angular\compiler-cli\index.js:12:18)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\node_modules@ngtools\webpack\src\plugin.js:5:22)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\node_modules@ngtools\webpack\src\index.js:6:10)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\models\webpack-configs\typescript.js:3:17)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\models\webpack-configs\index.js:9:10)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\models\webpack-config.js:4:25)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\tasks\build.js:6:24)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angu
lar\cli\commands\build.run.js:3:15)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at C:\Users\Kevin\AppData\Roaming\npm\node_modules@angular\cli\commands\hel
p.js:29:33
at Array.reduce (native)
at Class.run (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angular\cli\c
ommands\help.js:27:39)
at Class. (C:\Users\Kevin\AppData\Roaming\npm\node_modules@angul
ar\cli\ember-cli\lib\models\command.js:134:17)
at process._tickCallback (internal/process/next_tick.js:103:7)
During installation rxjs came up as an unmet dependency
The text was updated successfully, but these errors were encountered: