Giter Club home page Giter Club logo

Comments (7)

jvandemo avatar jvandemo commented on August 15, 2024 1

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.

ejmvar avatar ejmvar commented on August 15, 2024

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.

jvandemo avatar jvandemo commented on August 15, 2024

@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.

jvandemo avatar jvandemo commented on August 15, 2024

@ejmvar — Also make sure that you have the latest version of nx installed (0.1.0-beta.0).

from nx.

ejmvar avatar ejmvar commented on August 15, 2024

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.

jvandemo avatar jvandemo commented on August 15, 2024

@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.

github-actions avatar github-actions commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.