-
This may be an issue in react-query, but I attempted to update my app to vite 3 beta, and got the following error when building or running the dev server.
This seems to come from esbuild. Here's the code in react-query. https://github.com/TanStack/query/blob/9f6c992feecb4694758f8767063d8ad89d842c3c/devtools/index.js This was working fine for me in 2.9.9. Is there a change that react-query should make, or is this an esbuild-specific issue? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Here is a bug report for this #8704. @brillout I wonder if this is also what you are hitting in a lot of the deps you mentioned. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I tested out beta.2, and I no longer have the error. 👍 |
Beta Was this translation helpful? Give feedback.
Here is a bug report for this #8704. @brillout I wonder if this is also what you are hitting in a lot of the deps you mentioned.
@sapphi-red it may be that some of our assumptions in #8606 weren't correct about Vite resolution taking completely over esbuild rules. Edit: Confirmed that using
platform: 'browser'
fixes this.