Closed alicia-lyu closed 1 year ago
There was a mistake with my tsconfig.json. typeRoots
should be ["./node_modules/@types", "./node_modules/*"]
. However, this doesn't fix the static checking problem.
I should also mention that even with the temporary fix, there is not auto completion with Rating in my IDE.
Hi @alicia-lyu, sorry for getting back to you so late. Yes, there was indeed an issue with react-rating package.json exports
field which affected NextJS 13.
I just released a new version that fixes it and adds support for the app router.
Thank you for reporting the issue.
Hi @alicia-lyu, sorry for getting back to you so late. Yes, there was indeed an issue with react-rating package.json
exports
field which affected NextJS 13.I just released a new version that fixes it and adds support for the app router.
Thank you for reporting the issue.
Don't worry! Thank you for the new release!
The following static checking error pops up with
import { Rating } from "@smastrom/react-rating"
.Environment
tsconfig.json:
My temporary solution
I added a new file
react-rating.d.ts
in the root directory with the following code:The error is resolved.