New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup build errors #673
Comments
I'm not sure if this is the intended behavior but I had to use |
thanks @hug0b for this report and the solution! In my case by just importing "jszip/dist/jszip" fixed it (no need to install any extra rollup plugin) |
Importing
I am using Svelte with Nollup UPDATE: everything works fine with Rollup |
My goal is to use jszip in a browser application (UMD).
importing jszip (
import JSZip from "jszip";
) in an application bundled with Rollup causes the following build errors:Sample project based on rollup-starter-lib
EDIT:
What I have gathered so far:
resolve({ preferBuiltins: true })
in the configuration (not very important)(!) Circular dependencies
error is a "bug" between Rollup and nodejs/readable-stream apparently: see Circular dependencies (prevents properrollup
) nodejs/readable-stream#348 and CommonJS circular dependency execution order could be handled better rollup/rollup#1507The error I currently have is when executing my build:
bundle.umd.js
TypeError: superCtor is undefined
orUncaught TypeError: Cannot read property 'prototype' of undefined
The text was updated successfully, but these errors were encountered: