Closed arvinxx closed 6 months ago
同样的问题,升级前也只是一些finddom的警告,升级后程序崩快了
/Users/hiql/workspace/lt-projects/lingtan/node_modules/rc-util/es/ref.js:1
import _typeof from "@babel/runtime/helpers/esm/typeof";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1389:18)
at Module._compile (node:internal/modules/cjs/loader:1425:20)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
at Module.load (node:internal/modules/cjs/loader:1287:32)
at Module._load (node:internal/modules/cjs/loader:1103:12)
at Module.require (node:internal/modules/cjs/loader:1310:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/Users/hiql/workspace/lt-projects/lingtan/node_modules/antd/lib/alert/Alert.js:18:13)
at Module._compile (node:internal/modules/cjs/loader:1480:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
Reproduction link
https://github.com/lobehub/lobe-chat/tree/failed-with-deps/antd-5.17.1
Steps to reproduce
What is expected?
test pass
What is actually happening?
test error with:
I think it's a bug of import
es
module inlib
folder: