@vue/cli 4.5.17 配置项目中启动不了
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
@vue/cli 4.5.17 配置项目中启动不了, 报webpack 不存在加载'./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js' loader
**webpack版本:**
webpack: 5.70.0
webpack-cli: 4.9.2
webpack-dev-server 4.7.4
#### 截图或视频:

#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
`yarn`
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
"amis": "^1.8.0-beta.2",
"amis-editor": "^4.1.0-beta.2",
3. 粘贴有问题的完整 `amis schema` 代码:
```
没启动,启动./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js 报错
```
4. 操作步骤
"amis": "^1.6.3",
"amis-editor": "^4.0.1-beta.28",
升级到
"amis": "^1.8.0-beta.2",
"amis-editor": "^4.1.0-beta.2"
项目就启动不了了, 我感觉是monaco-editor esm打包导致的问题,我看到amis 中monaco-editor 是异步加载的
monaco-editor-webpack-plugin配置我也试了,依旧报错,不知道问题出在哪
个人感觉是monaco-editor 更新了版本的问题
备注: https://github.com/aisuda/vue-custom-widget-template, 我是想vue项目中使用这个demo
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the startup failure in the linked vue-custom-widget-template using amis 1.8.0-beta.2, amis-editor 4.1.0-beta.2, and the stated webpack versions. Inspect the loading failure at ./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js and compare it with the older amis and amis-editor versions. Done means the demo starts successfully without the reported webpack or Monaco 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