-
Notifications
You must be signed in to change notification settings - Fork 323
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
node-entry.js:6 Uncaught TypeError: Cannot assign to read only property 'document' of object '#<Window>' #297
Comments
This is for node-like environments where the globals do not exist, but something in that webpack configuration must be triggering this by providing a |
Can you confirm if changing if (typeof global !== 'undefined' && global.window) {
if (!global.document) {
global.document = global.window.document;
}
if (!global.navigator) {
global.navigator = global.window.navigator;
}
}
require('./main'); |
…ee.js source code, fix #297 with global.document clobbering, and fix typo in webvr-polyfill.js
I no longer get that issue - that fixed the import issue using webpack!! YAY!! |
I just recreated this issue myself, thanks for reporting! I'll have a fix shortly |
Fixed via 878873d |
…ee.js source code, fix #297 with global.document clobbering, and fix typo in webvr-polyfill.js
…ee.js source code, fix #297 with global.document clobbering, and fix typo in webvr-polyfill.js
…ee.js source code, fix #297 with global.document clobbering, and fix typo in webvr-polyfill.js
…ee.js source code, fix #297 with global.document clobbering, and fix typo in webvr-polyfill.js
using webpack and three.js I get this when adding as import into my js page..
node-entry.js:6 Uncaught TypeError: Cannot assign to read only property 'document' of object '#'
unsure if I'm importing or using it right in the context of webpack builds...
The text was updated successfully, but these errors were encountered: