Skip to content
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

Problems with adding worker in Universal #66

Open
vulovicv23 opened this issue Sep 10, 2021 · 2 comments
Open

Problems with adding worker in Universal #66

vulovicv23 opened this issue Sep 10, 2021 · 2 comments

Comments

@vulovicv23
Copy link

vulovicv23 commented Sep 10, 2021

Hey guys!

So, im having issues with adding worker as described in the readme to my angular project.

I have a Angular app with Universal built into it. I am unable to find a solution to make this work. Can you please suggest anything?

worker: new Worker('./grpc.worker', { type: 'module' }),
                            ^

ReferenceError: Worker is not defined

Thanks!

Vukasin

@smnbbrv
Copy link
Owner

smnbbrv commented Mar 1, 2022

Hi,

I'm very sorry for so much delayed response. I'm totally unsure whether it is possible at all to create Worker in Universal. This is probably a question to angular team. Did you find a solution?

@vulovicv23
Copy link
Author

I didn't, so, I moved along, not using GRPC for connecting it from FE anymore, but rather api with Brotli compression, and then the microservices are communicating via GRPC which is much easier to handle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants