-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The AngularCompilerPlugin was not found. #23
Comments
I also have this issue. I tried to inject services from the Angular app so we can use the same classes/logic in the workers, but this doesn't really seem to be possible sadly. |
I have the same error, I only import 'globals' in my workers. I'm trying to add webpack bundling, it worked ok without. |
I have the same problem with webpack and a worker. Using worker-loader as so: const SEARCH_WORKER = require('worker-loader!../../../../workers/search'); Error from webpack dev server output:
|
Take a look to this answer: |
I have this problem and i can't import any class from my Angular project using Typescript worker making this plugin almost useless and worst being the only way for threading in nativescript. You must fix this ASAP because is affecting the perception of NativeScript. |
Also facing this issue. Unfortunately being able to process some long running tasks is a requirement for me so... This could be the reason to drop NS. |
Need to try it tonight, if we pass an object to worker would we be able to call the functions. For example: const backendLogic = new backendLogic () And in worker |
i got it mostly working using the js worker - but now i've run into a problem. |
@NickIliev Using the proposed solution generated another error inside
After this I was able to successfully import ts files and use the worker as I desired. So it seems the worker is not using the correct plugins. I suggest we migrate from using worker-loader as a base implementation, to worker-plugin, which has proper support for plugins (including named plugins and etc). |
Hello @edusperoni , I am getting the below error when i doing ns run ios. ***** Fatal JavaScript exception - application has been terminated. ***** NS CLI - 8.1.5 Please help me to resolve this Thanks |
Error occurs if some ts class is imported inside typescript.worker.ts.
It can be reproduced easily in the demo app. Just create some ts class and import it in typescript.worker.ts.
The text was updated successfully, but these errors were encountered: