wickedest / Mergely

Merge and diff documents online
http://www.mergely.com
Other
1.18k stars 228 forks source link

Uncaught ReferenceError: require is not defined #119

Closed pcleckler closed 5 years ago

pcleckler commented 5 years ago

Uncaught ReferenceError: require is not defined at mergely.js:3

...on a static web page (file:// protocol).

To replicate, I've taken the Simple example, created the necessary "lib" folder, and loaded mergely.js, Timer.js, and mergely.css in it.

wickedest commented 5 years ago

which browser?

wickedest commented 5 years ago

Actually, I have a feeling you are using src/mergely.js. You will not be able to use that directly - it gets compiled into lib/mergely.js. Use the files in the lib directory.

pcleckler commented 5 years ago

Chrome and yep, grabbed the src version. Thanks!