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

Uncaught TypeError: Cannot set property 'dat' of undefined #302

Open
walibukhari opened this issue Jul 19, 2021 · 1 comment
Open

Uncaught TypeError: Cannot set property 'dat' of undefined #302

walibukhari opened this issue Jul 19, 2021 · 1 comment

Comments

@walibukhari
Copy link

walibukhari commented Jul 19, 2021

I am getting this error while importing dat.gui.js:

Uncaught TypeError: Cannot set property 'dat' of undefined
at dat.gui.js:17
at dat.gui.js:18

HTML import: <script type="module" src="js/dat.gui.js"></script>
Javascript import: import * as dat from "./js/dat.gui.js";

Is this my code fault or a vulnerability in the file itself?

@tomhsiao1260
Copy link

I think in this case you need to use dat.gui.module.js instead.
https://github.com/dataarts/dat.gui/tree/master/build

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