soywod / react-pin-field

📟 React component for entering PIN codes.
https://soywod.github.io/react-pin-field/
MIT License
413 stars 24 forks source link

react_1.forwardRef is not a function #24

Closed PengZhao12 closed 3 years ago

PengZhao12 commented 3 years ago

< PinField data-cy="pin-field" />

but

Uncaught TypeError: react_1.forwardRef is not a function at Object../node_modules/react-pin-field/lib/pin-field/pin-field.js (pin-field.js:240) at webpack_require__ (bootstrap:782) at fn (bootstrap:150) at Object../node_modules/react-pin-field/lib/pin-field/index.js (index.js:13) at webpack_require (bootstrap:782) at fn (bootstrap:150) at Object../node_modules/react-pin-field/lib/index.js (index.js:14) at __webpack_require (bootstrap:782) at fn (bootstrap:150) at Module../src/components/PinInp/index.js (index.js:1)

soywod commented 3 years ago

Is react and react-dom in your devDependencies? Can you provide more information (how you import PinField, do you have a reproductible repo etc)?

soywod commented 3 years ago

No news for 2 weeks, I close the issue. Feel free to reopen it if your error persists.