ant-design / ant-design/pro-components

🐛[BUG]path-to-regexp\dist\index.js: symbol.charCodeAt is not a function

Open
#9,034 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.