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 #130

Open
markb-trustifi opened this issue Aug 14, 2024 · 4 comments
Open

window is not defined #130

markb-trustifi opened this issue Aug 14, 2024 · 4 comments

Comments

@markb-trustifi
Copy link

Cannot run this library on node.js because of the window.UDOC.

The workaround is:

const SandboxedModule = require('sandboxed-module');
const UTIF = SandboxedModule.require('utif', {
    globals: {window: {}}
});
@photopea
Copy link
Owner

what is node.js?

@markb-trustifi
Copy link
Author

nodejs v20.13.1

@photopea
Copy link
Owner

utif.js is a Javascript library to be used in Javascript in web browsers.

@markb-trustifi
Copy link
Author

markb-trustifi commented Aug 15, 2024

utif.js is a Javascript library to be used in Javascript in web browsers.

Wrong. It can be used also in javascript desktop applications.
Do you know what is NodeJS and NextJS?

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

2 participants