dataarts / dat.gui

Lightweight controller library for JavaScript.
Apache License 2.0
7.46k stars 1.08k forks source link

Unexpected token '<' script.js:11 & Uncaught ReferenceError: dat is not defined at window.onload #287

Closed mrmadgav closed 3 years ago

mrmadgav commented 3 years ago

Hi! Have just get these problems: (Tried .min.js, .js

Uncaught SyntaxError: Unexpected token '<' script.js:11

Uncaught ReferenceError: dat is not defined at window.onload (script.js:11) 3 2 1

donmccurdy commented 3 years ago

This error usually means the dat.gui.js file is not at the location you specified. The Network tab in your developer tools will have more information about where the webpage is looking, but you'll need to inspect your project carefully to determine the right path. Note the difference in js and ./js in your example.