ngrx / platform

Reactive State for Angular
https://ngrx.io
Other
8.01k stars 1.97k forks source link

No exported member 'OpaqueToken' #554

Closed cyberbeast closed 6 years ago

cyberbeast commented 6 years ago

I'm submitting a...


[x] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Feature request
[ ] Documentation issue or request

What is the current behavior?

Getting an error as follows:

ERROR in node_modules/@ngrx/store/src/ng2.d.ts(1,10): error TS2305: Module '"/Users/../../../node_modules/@angular/core/core"' has no exported member 'OpaqueToken'.

I upgraded angular4.4.6 to 5.0.0rc and ngrx from 2.4. to 4. and have been experiencing this error since.

Version of affected browser(s),operating system(s), npm, node and ngrx:


    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/

Angular CLI: 1.5.0
Node: 7.7.1
OS: darwin x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router

@angular/cdk: 2.0.0-beta.12
@angular/cli: 1.5.0
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material: 2.0.0-beta.12
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.2
typescript: 2.6.1
webpack: 3.8.1
cyberbeast commented 6 years ago

There is another issue which solves this that was closed 22 hours ago. Discussions on that issue helped me fix the error I was having and so I am closing this issue.

tiagomms commented 6 years ago

@cyberbeast i am having the some problem. Can you redirect to the issue which solved this problem?

gbrigens commented 6 years ago

I am getting the same problem too where is the link to the fix?

r-havelka commented 6 years ago

From what I have seen, it is a library issue. When I upgraded from angular 4 to 5, I had to update a few/most of my libraries and these errors went away.

Dhaneshmonds commented 6 years ago

I am Getting the same error when I moved to angular 5.

thoughtpalette commented 6 years ago

A link to the discussion would've been amazing here @cyberbeast

cyberbeast commented 6 years ago

My issue was mainly due to errors in not following the migration guide in the documentation on the ngrx/platform git repo. The migration guide is very thorough about how to go about solving the issues. I am afraid the inline link to the specific issue number did not work while I typed my concluding thoughts on this issue. I apologize for that. You can find the migration guide here