You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 evanw/esbuild#1921
Solution could be:
not bundle dep when not have to
Or auto add cjs shim via esbuild inject
Should only add shim to node version bundle for web version, this option should be skipped
The text was updated successfully, but these errors were encountered:
t83714
changed the title
DockerUtils v3.0.1 was released incorrectly with commonjs code
@magda/xxx NPM packages might throw "Dynamic require of "os" is not supported" error after v3
Apr 14, 2024
@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 evanw/esbuild#1921Solution could be:
inject
The text was updated successfully, but these errors were encountered: