-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Module not found: Error: Can't resolve 'react' in non-react environnements(Vue/Node) #60
Comments
Having the same problem here. Although I've been using the I wonder why this is the case. @victorgarciaesgi's suggestion should do the trick, IMO. We are already using the @blackxored what do you think? I'd be happy to do an MR for this one, as I think it will make the package more compatible again! |
Also note, a clean and simple fix is actually just installing I was worried about using it as I thought |
@chegger The source code is rougthly ≃ 70 lines so I forked it and ported it into Typescript and put it locally on my projects to avoid putting react in dependencies |
I made a package with your solution if anyone needs it: |
🎉 This issue has been resolved in version 2.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I have this error when compiling my Vue app with
@apollo/client
v3, and latest version fromapollo-link-logger
The error comes from here, where you are importing from the entire @apollo/client package, and importing react;
apollo-link-logger/src/index.js
Line 2 in 7380691
Possible fix comes from their docs
The text was updated successfully, but these errors were encountered: