Open HalfdanJ opened 1 year ago
Since mirage is written as an esm module, shouldn't it depend on lodash-es
instead?
Hi, I got the same error, did you solve it?
Maybe the same error I got, trying to bundle with rollup:
RollupError: "default" is not exported by "node_modules/lodash.uniq/index.js", imported by "node_modules/miragejs/dist/mirage-esm.js"
import { createServer, Model, Factory } from 'miragejs';
v0.1.47
I'm trying to use miragejs, but getting blocked by a runtime syntax error.
The project is using
@web/dev-server
as dev server, with esbuild plugin, and is written in typescript.When importing miragejs, i get a runtime error
If I look at the code in
mirage-esm
, I seeAnd if I look inside that file is see
which to me seems not to be correct. Theres no default export, as the mirage code expects.