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

window is not defined error in browser #1092

Open
beastybeast opened this issue Aug 12, 2024 · 3 comments
Open

window is not defined error in browser #1092

beastybeast opened this issue Aug 12, 2024 · 3 comments

Comments

@beastybeast
Copy link

Everytime I try to use the lib in the browser I get the error that "window is not defined" at load.

I upgraded from an older version to the latest.

Why?

@beastybeast
Copy link
Author

Is it not possible to get a non minimized forge.js file to find out what is happening?

@beastybeast
Copy link
Author

When I try to run it with the map file I get this error:
Could not load content for webpack://[name]/forge.min.js (Fetch through target failed: Unsupported URL scheme; Fallback: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)

@beastybeast
Copy link
Author

beastybeast commented Aug 19, 2024

By comparing to the old version I found out that the error are in line 10

})(window, function() {

shall be replaced with

})("undefined" != typeof self ? self : this, function() {

Then it seams to work again

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

1 participant