magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
493 stars 93 forks source link

@magda/xxx NPM packages might throw "Dynamic require of "os" is not supported" error after v3 #3516

Closed t83714 closed 2 months ago

t83714 commented 2 months ago

@magda/xxx NPM packages might throw "Dynamic require of "os" is not supported" error after v3

Since v3, we have used build to build @magda/xx packages.

When bundling common deps, esbuild doesn't include a cjs shim but throws an error when require is not available (e.g. when released as an ESM module). See https://github.com/evanw/esbuild/issues/1921

Solution could be:

t83714 commented 2 months ago

closed via PR: https://github.com/magda-io/magda/pull/3517