Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace outdated UI component library amazeui-react #2

Open
TangliziGit opened this issue Jan 11, 2022 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@TangliziGit
Copy link
Member

Refactor Request

问题描述 / Is your feature request related to a problem?

The NPM install process reports a error, since the UI component library amazeui-react is outdated for 6 years, which the latest vesion only support react up to ^15.0.1.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^16.8.6" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0.1" from [email protected]
npm ERR! node_modules/amazeui-react
npm ERR!   amazeui-react@"^1.2.3" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

The corresponding log is below:

71 http fetch GET 200 https://registry.npm.taobao.org/amazeui-react 85ms (cache revalidated)
72 silly fetch manifest react@^15.0.1
73 timing idealTree Completed in 4184ms
74 timing command:install Completed in 4198ms
75 verbose stack Error: unable to resolve dependency tree
75 verbose stack     at Arborist.[failPeerConflict] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1362:25)
75 verbose stack     at Arborist.[loadPeerSet] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1328:34)
75 verbose stack     at async Arborist.[buildDepStep] (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:935:11)
75 verbose stack     at async Arborist.buildIdealTree (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:216:7)
75 verbose stack     at async Promise.all (index 1)
75 verbose stack     at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:149:5)
75 verbose stack     at async Install.exec (/usr/lib/node_modules/npm/lib/commands/install.js:157:5)
75 verbose stack     at async module.exports (/usr/lib/node_modules/npm/lib/cli.js:66:5)

解决方案 / Describe the solution you'd like

Replace the amazeui-react into more stable and active UI framework or component library.

替代方案 / Describe alternatives you've considered

Now usnig npm install --legacy-peer-deps for first building, and subsequent build will work properly.

其他 / Additional context

@TangliziGit TangliziGit added the enhancement New feature or request label Jan 11, 2022
@TangliziGit TangliziGit self-assigned this Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant