ECMAScript
ECMAScript copied to clipboard
Can't import a library that doesn't have a class definition
I can't import a library that doesn't have a class definition. All import ends with:
ERROR: get_instance_base_type: Parameter "ecma_class" is null.
At: modules/ECMAScript/ecmascript.cpp:29
Library i tried: https://csv.js.org/ https://www.papaparse.com/
Here is a working example.
I use TS here and compile all npm_modules
I use to a script which will be built by esbuild
. Besides this, you could use https://unpkg.com/[email protected]/papaparse.min.js which should be the same like the esbuild
file.