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
var import_lodash_es = require("lodash-es");
^
Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/.pnpm/[email protected]/node_modules/lodash-es/lodash.js from node_modules/.pnpm/@[email protected]/node_modules/@rspress/shared/dist/node-utils.js not supported.
Instead change the require of lodash.js in node_modules/.pnpm/@[email protected]/node_modules/@rspress/shared/dist/node-utils.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (node_modules/.pnpm/@[email protected]/node_modules/@rspress/shared/dist/node-utils.js:64:24) {
code: 'ERR_REQUIRE_ESM'
}
Reproduce link
nope
Reproduce Steps
nope
The text was updated successfully, but these errors were encountered:
Version
System: OS: Linux 5.15 Ubuntu 20.04.3 LTS (Focal Fossa) CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz Memory: 10.97 GB / 15.62 GB Container: Yes Shell: 5.0.17 - /bin/bash npmPackages: rspress: ^1.38.0 => 1.38.0
Details
after build,
@rspress/shared/dist/node-utils.js
likes:but
lodash-es
is esm package, requie will failed:Reproduce link
nope
Reproduce Steps
nope
The text was updated successfully, but these errors were encountered: