Closed imdark closed 1 year ago
You're trying run the library outside an ECMAScript Module but you did not build the library in order to do so.
I just did a meteor npm install which works for most other libraries, how would i go about building to not be a module
How do you import zip.js in your project?
By doing, npm install and calling require('@zip.js/zip.js')
If you use require
, you should write const zip = require("@zip.js/zip.js/index.cjs");
as documented here: https://gildas-lormeau.github.io/zip.js/.
even just
will cause everything to crash Uncaught SyntaxError: Cannot use 'import.meta' outside a module (at modules.js?hash=886c0c85d0b952d506ded4b863a6b4c16b334665:105718:19) react-fast-refresh.js?hash=2d2cfb538903e27f542f73469113bb56a27e2a7e:17 Uncaught TypeError: Cannot read properties of undefined (reading 'meteorInstall') at react-fast-refresh.js?hash=2d2cfb538903e27f542f73469113bb56a27e2a7e:17:37 at react-fast-refresh.js?hash=2d2cfb538903e27f542f73469113bb56a27e2a7e:982:3 (anonymous) @ react-fast-refresh.js?hash=2d2cfb538903e27f542f73469113bb56a27e2a7e:17 (anonymous) @ react-fast-refresh.js?hash=2d2cfb538903e27f542f73469113bb56a27e2a7e:982