react-component / react-component/tabs
Module not found: Error: Can't resolve 'rc-util/es/isMobile' in node_modules/rc-tabs/es
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 572
- Forks
- 241
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 4
Description
After pulling in version 11.7.1 I get the error below. Switching back to 11.7.0 fixes it. So, somehow this must be a regression.
ERROR in ./smc-webapp/node_modules/rc-tabs/es/Tabs.js
Module not found: Error: Can't resolve 'rc-util/es/isMobile' in '[...]/smc-webapp/node_modules/rc-tabs/es'
@ ./smc-webapp/node_modules/rc-tabs/es/Tabs.js 11:0-43 108:14-22
@ ./smc-webapp/node_modules/rc-tabs/es/index.js
@ ./smc-webapp/node_modules/antd/es/tabs/index.js
@ ./smc-webapp/node_modules/antd/es/index.js
[...]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the 11.7.1 and 11.7.0 packages and inspect the import from node_modules/rc-tabs/es/Tabs.js. Check why rc-util/es/isMobile cannot be resolved in 11.7.1, then reproduce the reported webpack error with the affected version. Done means the 11.7.1 dependency resolves successfully without the reported Module not found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100