Why the import from npm is not working but working when copy-pasted and imported from file? #10206
Unanswered
nikita-starostin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I wanted to use that package: https://www.npmjs.com/package/react-card-flip
When I have imported component as documented
I got
So, I jumped to source of
react-card-flip
to check is any code that is not compatible with SSR: https://github.com/AaronCCWong/react-card-flip/blob/master/src/ReactCardFlip.tsxI have not found any issue, so copy-pasted code into my source in
routes
near my route, and now when import that code likeit is working
I am a little bit confused by that, I thought error above signaling about error during SSR due to incompatible with node runtime calls, but then copied code also should not work, could probably someone help to understand why it is working in that way?
Beta Was this translation helpful? Give feedback.
All reactions