ant-design / ant-design/pro-editor
[Question] 无法resolve shiki/bundle/web
- Dominant language
- TypeScript
- Stars
- 247
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
### 🧐 问题描述 | Proposed Solution
ERROR in ./node_modules/@ant-design/pro-editor/es/Highlight/hooks/useShiki.js
Module not found: Error: Can't resolve 'shiki/bundle/web' in '/Users/eleme/Desktop/alscadbssstyle/node_modules/@ant-design/pro-editor/es/Highlight/hooks'
@ ./node_modules/@ant-design/pro-editor/es/Highlight/hooks/useShiki.js 6:0-50 23:19-33
@ ./node_modules/@ant-design/pro-editor/es/Highlight/index.js
@ ./node_modules/@ant-design/pro-editor/es/index.js
@ ./node_modules/@ant-design/pro-chat/es/EditableMessage/index.js
@ ./node_modules/@ant-design/pro-chat/es/index.js
@ ./node_modules/@alife/pc-ai-chat/esm/index.js
@ ./src/components/Logo.jsx
@ ./src/layouts/UpgradeLayout/index.js
@ ./src/index.js
@ multi ./node_modules/react-dev-utils/webpackHotDevClient.js ./src/index.js
./node_modules/@ant-design/pro-editor/es/Highlight/hooks/useShiki.js
Module not found: Can't resolve 'shiki/bundle/web' in '/Users/eleme/Desktop/alscadbssstyle/node_modules/@ant-design/pro-editor/es/Highlight/hooks'
### 📝 补充信息 | Additional Information
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with node_modules/@ant-design/pro-editor/es/Highlight/hooks/useShiki.js and trace the import of shiki/bundle/web shown in the build output. Reproduce the failure from src/index.js through the reported webpack entry points; done means the dependency resolves and the application build completes without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100