Open walibukhari opened 3 years ago
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
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";
<script type="module" src="js/dat.gui.js"></script>
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
dat.gui.module.js
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?