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

"postinstall": "cd node_modules/fabric && yarn build_with_gestures" is giving window not defined #7995

Closed
Rajdeepc opened this issue Jun 7, 2022 · 3 comments
Labels
CI/CD stale Issue marked as stale by the stale bot

Comments

@Rajdeepc
Copy link

Rajdeepc commented Jun 7, 2022

@ShaMan123
trying to build fabric with gestures in a postinstall script
while doing so getting window not defined on the following path

ReferenceError: window is not defined
    at /Users/rajdeepc/Documents/Projects/loop/create-together/node_modules/fabric/dist/fabric.js:563:2

I checked the path and it is failing due to null check on window in several instances.
How can i solve this.

fabric: ^5.7

I am installing this fabric on a nextjs project.

@stale
Copy link

stale bot commented Jun 29, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Jun 29, 2022
@stale stale bot closed this as completed Jul 10, 2022
@KKzLEO
Copy link

KKzLEO commented Nov 18, 2022

I encountered the same issue, I installed custom build and there's somewhere using window, any workaround for it?

@ShaMan123
Copy link
Contributor

ShaMan123 commented Nov 18, 2022

duplicate #8444 ? SSR related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD stale Issue marked as stale by the stale bot
Projects
None yet
Development

No branches or pull requests

3 participants