Uncaught TypeError: Cannot read properties of undefined (reading 'call')
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
代码不变升级后打包出现moduleId为null

请用一段清晰简洁的文字描述问题是什么...
打包出现报错,代码不变只是更新到3.1.1
#### 截图或视频:
可以的话,尽可能提供截图或视频来补充描述你的问题...
#### 如何复现(请务必完整填写下面内容):
1. webpack5.x打包配置?
weppack 5.80.0
{
test: /\.tsx?$/,
use: [
{
loader: "thread-loader",
// 有同样配置的 loader 会共享一个 worker 池
options: {
workers: threads,
},
},
{
loader: "babel-loader",
options: {
cacheDirectory: true,//开启babel缓存
cacheCompression: false,//关闭缓存文件压缩提高打包的速度
presets: [
"@babel/preset-env",
]
}
},
{
loader: "ts-loader",
options: {
happyPackMode: true,
},
},
],
// include: [resolve("src")],
exclude: buildMode ? /node_modules | skeleton/ : /node_modules | editor/,
},
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
"amis": "^3.1.1",
"amis-core": "^3.1.1",
"amis-editor": "^5.4.0",
"amis-formula": "^3.1.1",
"amis-ui": "^3.1.1",
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the build with webpack 5.80.0, the shown loader configuration, and amis 3.1.1 dependencies. Trace where moduleId becomes null before the TypeError reading call occurs. Done means the unchanged application builds successfully after the amis upgrade, with no moduleId-null error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, webpack
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100