ant-design / ant-design/pro-components
🐛[BUG]path-to-regexp\dist\index.js: symbol.charCodeAt is not a function
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
项目umi3.5 antd5 "@ant-design/pro-components": "^2.8.6", 项目运行没有问题构建打包时报错./node_modules/@ant-design/pro-layout/node_modules/path-to-regexp/dist/index.js
Module build failed (from ./node_modules/@umijs/deps/compiled/babel-loader/index.js):
TypeError: D:\code\xxx\node_modules\@ant-design\pro-layout\node_modules\path-to-regexp\dist\index.js: symbol.charCodeAt is not a function
Contributor guide
Research direction
Reproduce the production build with Umi 3.5, antd 5, and @ant-design/pro-components 2.8.6, then inspect node_modules/@ant-design/pro-layout/node_modules/path-to-regexp/dist/index.js and the @umijs/deps compiled babel-loader output. Done means the build completes without the symbol.charCodeAt error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100