Closed misogihagi closed 3 months ago
Currently, only the library only supports ReScript v10 and v9. So you will need to downgrade your ReScript version.
Indeed, styled-ppx doesn't support ReScript v11 yet. I made to peerDepend on v9 or v10 in the package.json: https://github.com/davesnx/styled-ppx/blob/main/package.json#L29 so you might have seen a warning when installing.
This is the task related with v11: https://github.com/davesnx/styled-ppx/issues/415
currently, It works on this dependencies:
"dependencies": {
"@rescript/core": "0.7.0",
"@rescript/react": "0.11.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rescript": "^10.1.4"
},
but styled components does not work by the other reason...
I am new to rescript. When I wanted to use styled-components with rescript, I found this repository.
Then running
npm create rescript-app
like following◇ Select a template │ Vite ◇ ReScript version? │ 11.0.1 ◇ ReScript Core version? │ 1.2.0
npm install @davesnx/styled-ppx
and editing rescript.jsonI encountered the following error
How can I solve this problem?