ECMAScript icon indicating copy to clipboard operation
ECMAScript copied to clipboard

Can't import a library that doesn't have a class definition

Open xxmatxx opened this issue 2 years ago • 1 comments

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/

xxmatxx avatar Apr 08 '22 13:04 xxmatxx

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.

nmerget avatar Oct 10 '23 21:10 nmerget