react-component / select

React Select
https://select.react-component.now.sh/
MIT License
892 stars 452 forks source link

Attempted import error: 'useComposeRef' is not exported from 'rc-util/es/ref'. #938

Closed wify-techteam closed 1 year ago

wify-techteam commented 1 year ago

package.json of "rc-select"

{ "name": "rc-select", "version": "14.0.0", "description": "React Select", "engines": { "node": ">=8.x" }, "keywords": [ "react", "react-component", "react-select", "select" ], "main": "./lib/index", "module": "./es/index", "types": "./lib/index.d.ts", "files": [ "assets/*.css", "assets/*.less", "es", "lib" ], "homepage": "http://github.com/react-component/select", "repository": { "type": "git", "url": "git@github.com:react-component/select.git" }, "bugs": { "url": "http://github.com/react-component/select/issues" }, "license": "MIT", "scripts": { "start": "dumi dev", "build": "dumi build", "compile": "father build", "prepublishOnly": "npm run compile && np --yolo --no-publish", "lint": "eslint src/ docs/examples/ --ext .tsx,.ts,.jsx,.js", "test": "father test", "tsc": "tsc --noEmit", "now-build": "npm run build" }, "peerDependencies": { "react": "*", "react-dom": "*" }, "dependencies": { "@babel/runtime": "^7.10.1", "classnames": "2.x", "rc-motion": "^2.0.1", "rc-overflow": "^1.0.0", "rc-trigger": "^5.0.4", "rc-util": "^5.16.1", "rc-virtual-list": "^3.2.0" }, "devDependencies": { "@types/enzyme": "^3.10.9", "@types/jest": "^26.0.24", "@types/react": "^17.0.15", "@types/react-dom": "^17.0.3", "cross-env": "^7.0.0", "dumi": "^1.1.32", "enzyme": "^3.3.0", "enzyme-to-json": "^3.4.0", "eslint": "^7.1.0", "father": "^2.13.2", "jsonp": "^0.2.1", "np": "^7.5.0", "rc-dialog": "^8.1.1", "typescript": "^4.2.3" } }

afc163 commented 1 year ago

Need reproduce.

wify-techteam commented 1 year ago

I am not able reproduce it now, i deleted the node modules and switched by node version to 16.14.0 and it worked well. I was not using this package directly instead was using "antd" which internally utilized this repo.

Thanks a lot for your help and prompt response