fengari-lua / fengari-web

Provides everything you need to run Fengari in the browser.
MIT License
254 stars 18 forks source link

module not defined #56

Closed ZultaCulu closed 2 years ago

ZultaCulu commented 2 years ago

when i pull up the developer console, I get this error Uncaught ReferenceError: module is not defined

http://localhost:8000/Documents/GitHub/ZultaCulu.github.io/frameworks/fengari-web.js:1
daurnimator commented 2 years ago

We need far more information than this to debug; e.g. a full traceback, and what code were you trying to run?

ZultaCulu commented 2 years ago

We need far more information than this to debug; e.g. a full traceback, and what code were you trying to run?

I was trying to run a simple hello world program.

daurnimator commented 2 years ago

I was trying to run a simple hello world program.

How? Which hello world sample? via what mechanism? in which browser?

ZultaCulu commented 2 years ago

I tried doing a print("Hello World") both inside the index.html, and in an external file, in firefox and brave browser

daurnimator commented 2 years ago

That's not enough information for us to debug an issue.

curious-broccoli commented 4 months ago

I think that error happens when you try to load the fengari-web.module.js, rather than the fengari-web.js with a script tag