-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: silence "use client" warning #144
Conversation
0fe5036
to
80fb15a
Compare
Hello, this issue still happens in downstream package, see dai-shi/waku#49 |
i can confirm this still happens with vite and @vitejs/plugin-react at latest versions vite v4.4.9 building for production...
../node_modules/@tanstack/react-query-devtools/build/lib/index.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query-devtools/build/lib/devtools.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useQuery.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useQueries.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/Hydrate.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/QueryClientProvider.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useIsFetching.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useIsMutating.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useMutation.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/isRestoring.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query-devtools/build/lib/Explorer.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query-devtools/build/lib/theme.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useBaseQuery.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/reactBatchedUpdates.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error.
../node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.mjs (1:0) Error when using sourcemap for reporting an error: Can't resolve original location of error. |
Took me some time but this issue seems to come from other plugins that don't re-use the rollup.onWarn config. |
Fix #137
See vitejs/vite-plugin-react-swc#78