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

still get window is not defined after trying typeof === 'undefined' import('intersection-observer') #358

Closed
balbaal opened this issue May 8, 2019 · 4 comments
Labels

Comments

@balbaal
Copy link

balbaal commented May 8, 2019

window is not defined
ReferenceError: window is not defined
at Object. (E:\projects\fox\talenttribe\node_modules\intersection-observer\intersection-observer.js:732:3)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Module.require (internal/modules/cjs/loader.js:598:17)
at require (internal/modules/cjs/helpers.js:11:18)
at Object.intersection-observer (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:9223:18)
at webpack_require (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:23:31)
at Module../pages/jobs.js (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:3730:80)
at webpack_require (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:23:31)
at Object.4 (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:8947:18)
at webpack_require (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:23:31)
at module.exports.../credentials.js.module.exports.EMAIL.ADDRESS (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:91:18)
at Object. (E:\projects\fox\talenttribe\src.next\server\static\development\pages\jobs.js:94:10)

@balbaal
Copy link
Author

balbaal commented May 8, 2019

Screenshot (49)

it's my code

@crabkiller
Copy link

Perhaps you may want typeof window !== 'undefined' instead?

@philipwalton
Copy link
Member

Try using version 0.7.0 and see if it fixes your issue.

@miketaylr
Copy link
Member

Given there are a few suggestions on how to fix this, and it's been a while... I propose we close this. Please leave a comment or re-open if there's something still actionable here.

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

No branches or pull requests

5 participants