dataarts / dat.gui

Lightweight controller library for JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mrmadgav opened this issue · comments

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

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.