error while developing a react component library

i'm developing a react component library, and i get this error. however it disappears when i make a change and the package re-renders (it's in watch mode)
5 Replies
oa
oaOP3y ago
i suspect it has something to do with mismatched react versions package's package.json
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
}
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"peerDependencies": {
"react": "*",
"react-dom": "*"
}
i'm using a nextjs app to test
barry
barry3y ago
Code?
oa
oaOP3y ago
GitHub
GitHub - plege-xyz/react-sdk
Contribute to plege-xyz/react-sdk development by creating an account on GitHub.
bigboyjo
bigboyjo15mo ago
I’m writing a component library as well and got this same error. Was this the fix for the error?
oa
oaOP15mo ago
i gave up on the library bc i couldnt figure the error out lol
Want results from more Discord servers?
Add your server