This repository was archived by the owner on Aug 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 40
bundling worker: "TypeError: Cannot read property 'newLine' of undefined" #139
Labels
Comments
Update: I think it would be better if I could get webpack to transpile my worker.ts file for me. |
any workarounds? I'm getting this issue too |
Only the one I mentioned :) If you use |
doesn't for me with TNS3 |
What if you require the worker from vendor.ts? Sent from my OnePlus ONEPLUS A3003 using FastHub |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to bundle a worker in our project, but I keep getting this error:
I've created a demo project here:
https://github.com/m-abs/ns-debugging/tree/master/bundle-worker
It's a very simple worker as you can see here: https://github.com/m-abs/ns-debugging/blob/master/bundle-worker/app/worker.ts
I'm using @triniwiz's worker-loader and test for
global.TNS_WEBPACK
as suggested in #86 (comment)Like this: https://github.com/m-abs/ns-debugging/blob/master/bundle-worker/app/app.module.ts#L32-L48
What am I doing wrong?
The text was updated successfully, but these errors were encountered: