-
Notifications
You must be signed in to change notification settings - Fork 60
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
Handle reliance on 'window' object as optional #201
Comments
Please provide more information about the execution and/or development environment. The published npm package works correctly in server-side apps when invoked with the example code from here. |
@lexaknyazev glTF Validator has been working for me in a Node.js environment (example). However, I'm not able to use it in a Web Worker either, getting the same error mentioned above. Here's a simplified example: https://stackblitz.com/edit/donmccurdy-gltf-validator-worker?file=src/validator-worker.js The project can be downloaded from there with the small button in the sidebar. It appears that glTF Validator (or the Dart/JS build process?) is checking for a For applications like https://gltf.report/, it would be helpful to run validation in a Web Worker, as this can otherwise stall the main thread for a noticeable amount of time while the user is applying changes to a scene. |
Right now, the package fails validation when trying to use in node apps or service workers where
window
is not available:Would be nice to address this if possible! My use case involves server-side validation.
The text was updated successfully, but these errors were encountered: