Comments (5)
Try setting target
and module
of tsconfig.json
to ES2020
(instead of Angular default ES2022
). This fixed the exact same issue for me.
The relevant part of the tsconfig.json
now looks like this:
"target": "ES2020",
"module": "ES2020",
"lib": [
"ES2020",
"dom"
],
These are the versions of the relevant packages I'm currently using by the way:
"@angular/core": "^16.2.4"
"@ngxs/store": "^3.8.1"
"typescript": "^5.1.6"
This however is not a real solution as it causes a warning to appear from Angular (that tells me to set the target
to ES2022
but even if I only set that one to ES2022
it still breaks...)
from store.
Hi @h3x4d3c1m4l !
Thanks for sharing what have worked for you. Sadly, even after applying those changes to the tsconfig.json
, I'm still seeing the same errors.
from store.
@luismmdev can you provide a minimal reproducible example?
from store.
Hi @arturovt. Sorry for the delay. I've tried creating a minimal example to reproduce the issue but everything seemed to be working as expected. Maybe there's something wrong or conflicting in our tsconfig.json
. I'll try again whenever you guys release a new version. Thanks!
from store.
Iβm closing the issue for now. Feel free to reopen once youβre facing it again and at least can provide a running example, this will help to pinpoint that issue.
from store.
Related Issues (20)
- β[SUPPORT]: Angular 16 store.dispatch is not working HOT 2
- π[DOCS]: Example of upsertItem invalid for ngxs 3.8.1
- π[FEATURE]: Lazy load sub states HOT 2
- π[FEATURE]: [router-plugin] - export symbols for better extendability HOT 4
- π[BUG]: State values can not set when multiple action dispatched HOT 2
- π[DOCS]: ZooState imported before it exists HOT 1
- π[BUG]: ngxs-cli - generated code - contains nbsp and the spec uses deprecated code HOT 1
- π[BUG]: Using Angular 16 webapp is throwing "inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext` HOT 3
- best solution in impliment microfrontEnd HOT 1
- π[BUG]: Uncaught TypeError: Cannot read properties of undefined (reading 'SystemState') HOT 7
- π[BUG]: @Select decorator doesn't trigger value HOT 1
- π[BUG]: it seems that Ngxs is not compatible with Jest ESM HOT 4
- π[BUG]: patch operator does not handle null existing values
- π[BUG]: export 'StateContext' (imported as 'StateContext') was not found in '@ngxs/store' HOT 2
- π[FEATURE]: How to Load New State at Runtime? HOT 1
- π[BUG]: Could not use NgxsFormPlugin in subModule on Federation Architecture HOT 1
- π[FEATURE]: Support Angular 17 HOT 9
- π[BUG]: NgxsFormPlugin not work in Angular17 HOT 1
- π[BUG]: ngxs-store.js: Invalid count value HOT 16
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 store.