-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Description
Describe the bug
The QueryClientProvider from solid-query does not work properly in NX monorepo.
When I'm trying to use QueryClientProvider I see the "React is not defined" error
Your minimal, reproducible example
https://github.com/Stevedohh/nx-with-solid-query
Steps to reproduce
- Go to https://github.com/Stevedohh/nx-with-solid-query and clone it
- Run
npm iin root directory - Run
npm run start-solid-app - Open the runnable app
- Observe "Uncaught ReferenceError: React is not defined" in console tab
Expected behavior
As a user, I want not to see any errors in the console. And works with the library in a proper way.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows 10
react-query version
@tanstack/solid-query ^4.8.0
TypeScript version
~4.8.2
Additional context
The App component with QueryClientProvider located in apps/solid-app/src/App.tsx
Reactions are currently unavailable
