Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Next-workers: window is not defined #337

Closed
revskill10 opened this issue Nov 18, 2018 · 5 comments
Closed

Next-workers: window is not defined #337

revskill10 opened this issue Nov 18, 2018 · 5 comments

Comments

@revskill10
Copy link

I got error window is not defined with next-worker plugins.
Do you know how to resolve this ?

@timneutkens
Copy link
Member

Try @zeit/next-worker@canary Should be fixed there.

@revskill10
Copy link
Author

@timneutkens I got error

npm ERR! code E404
npm ERR! 404 Not Found: @zeit/next-worker@canary

when trying installing with npm i --save @zeit/next-worker@canary

@timneutkens
Copy link
Member

It's actually workers, so @zeit/next-workers@canary

@revskill10
Copy link
Author

Thanks @timneutkens .

@cryptiklemur
Copy link
Contributor

Thanks @timneutkens

Also @revskill10, depending on your NPM version, you dont need to speciy --save anymore :)

christoshrousis added a commit to christoshrousis/next-plugins that referenced this issue Jan 29, 2019
Ran into the same problem as issue vercel#337 because readme was out of date?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants