Closed djimenezdev closed 2 years ago
Hmm, seems to be an issue with how Vite is handleing ES6 modules. I saw this post (https://community.parseplatform.org/t/vue-vite-parse-js-error-super-expression-must-either-be-null-or-a-function/2001), a similar error on Parse (Moralis bootstrapped from Parse, so this is likely the same error)
We have little experience in Vite, and need to check if this is an issue that we can solve, or if it is a configuration of Vite for example.
Possibly related to: https://github.com/MoralisWeb3/Moralis-JS-SDK/issues/271
No worries! thank you so much reading through the links you sent me helped me figure out how to get it working in development and production. I appreciate the help!
Hello! So I have built my react app using vite rather than create react app. I installed react-moralis via yarn and I imported the MoralisProvider Component into my main.jsx and wrapped the App component as seen below:
And when I run the app I get this issue:
I was confused about this until I read that I needed to have the moralis pacakage installed as react-moralis requires it as a dependency so I installed moralis via yarn and thought that would fix the issue until I got this error in the console:
Would anyone happen to know how I could go about fixing this issue?
Thanks for the help!