Comments (7)
We are seeing the same here. As soon as we add a property to the state, the following error appears:
Error:(20, 25) TS2345:Argument of type '(state: Mystate, action: MystateAction) => Mystate' is not assignable to parameter of type 'ActionReducerMap<{ version: number; }, Action> | InjectionToken<ActionReducerMap<{ version: numbe...'.
Type '(state: Mystate, action: MystateAction) => Mystate' is not assignable to type 'InjectionToken<ActionReducerMap<{ version: number; }, Action>>'.
Property '_differentiate_from_OpaqueToken_structurally' is missing in type '(state: Mystate, action: MystateAction) => Mystate'.
from nx.
Same here.
I started a new project (curl from master), added ngrx, and served whthout issues.
But compilation failed once first element added to global (root) state.
How should I solve this?
Could be this issue still persists?
Thenks for so useful project.
from nx.
@ejmvar — Do you have the latest version of the schematics installed?
yarn global add @nrwl/schematics
The error has disappeared here with the latest version.
from nx.
@ejmvar — Also make sure that you have the latest version of nx installed (0.1.0-beta.0).
from nx.
Started by re-installing @nrwl/schematics and @nrwl/nx.
Still the same.
Built another clean environment (using nvm).
No way. Same issue.
It's absolutely minimal install.
Sorry I'm not able to track this issue deeper enough.
Cannot determine where my environments are failing.
Thanks for your answer, @jvandemo.
from nx.
@ejmvar — Do you have version 0.1.0-beta.0 installed? You can check in node_module/@nrwl/nx/package.json
. If not, you can try to manually install it.
Version 0.1.0-beta.0 solved the issue here.
Also, once you have the latest version installed, you will have to regenerate the ngrx store so the new schematics are used. Thanks!
from nx.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
from nx.
Related Issues (20)
- "serve-static" target leads to endless loop in angular application HOT 1
- 🐞 Angular buildable lib : `Can't find stylesheet to import`
- Remix recipe does not have `development` task HOT 1
- Production build (shell app) does not build remotes apps via host app build HOT 4
- release: too many authors in authors section HOT 1
- Generating a new library automatically edits nx.json by adding the nx-eslint plugin causing random performance issues HOT 3
- The following projects are defined in multiple locations (incorrectly triggered)
- nx-cloud start-ci-run unable to find dynamic-changesets.yaml HOT 1
- @nx/playwright ignoring --project argument
- Lerna (powered by Nx) Cannot read properties of undefined (reading 'projects') HOT 1
- Errors when attempting to configure storybook
- `nx migrate latest` fails on an Angular workspace: `Unable to fetch migrations for @ngrx/[email protected]`
- nx rollup build fails in CI without any useful error message
- npm install is flaky related to "nx" "post-install" native-bindings [includes full repo] HOT 3
- NX doesnt install on my Macbook
- `nx report` yield "Cannot convert undefined or null to object" error after upgrading from 14.8.6 to 15.0.0
- Module Federation SSR error: "Shared module is not available for eager consumption"
- Nx updates my Next version after creating a new application HOT 1
- nx reset --only-workspace-data (nx 9.2.x - 9.5.1) => Failed to reset the Nx workspace HOT 14
- `nx release plan` with a project containing a scoped npm package, and no project name creates a malformed plan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.