Replies: 1 comment 3 replies
-
OK, I think I've made a bit of progress on where the problem lies. The problem is with Angular. When you run an ng build the store.d.ts file is modified by angular for some reason.
The lasts few lines of the class become:
So.... I guess I'm off to file a bug with Angular. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A while back I was working on moving our Akita persistence into a webworker. Unfortunately due to time constraints I had to stop working on this, until now.
Previously I had a very primitive example of Akita working in a webworker.
Unfortunately, it appears that it is no longer possible to use Akita in an Angular webworker.
I've created a StackBlitz to reproduce the problem.
WebWorkers don't work in stackblitz so, the project will need to be downloaded and then do the usual
This will fail with the following error:
If you then open src/app/web-workers/test.worker.ts and comment out the import of the akita libraries the error goes away.
So, somehow when Akita is imported it seems to cause the @angular/core library to also be imported?
Or am I doing something totally wrong?
I was excited to finally get back to trying this today, only to be hit with this problem which I have no idea how to even debug.
Beta Was this translation helpful? Give feedback.
All reactions