Closed huykon closed 5 months ago
ERROR in ./node_modules/@smastrom/react-rating/dist/index.mjs 189:413-414 Can't import the named export 'useState' from non EcmaScript module (only default export is available)
Hi @huykon, this is expected as the mimum required React version is 18 (as stated in the peerDependencies
field of React Rating's package.json
).
I'm facing with this error on my project using react v17.0.1:
ERROR in ./node_modules/@smastrom/react-rating/dist/index.mjs 308:13-14 Can't import the named export 'Fragment' from non EcmaScript module (only default export is available)