Uncaught TypeError: Cannot set property 'dat' of undefined
walibukhari opened this issue · comments
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?
I think in this case you need to use dat.gui.module.js
instead.
https://github.com/dataarts/dat.gui/tree/master/build