Skip to content
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

Merged
merged 1 commit into from
Apr 5, 2023
Merged

feat: silence "use client" warning #144

merged 1 commit into from
Apr 5, 2023

Conversation

ArnaudBarre
Copy link
Member

@ArnaudBarre ArnaudBarre merged commit 25b652b into main Apr 5, 2023
@ArnaudBarre ArnaudBarre deleted the use-client-warning branch April 5, 2023 21:46
@himself65
Copy link

Hello, this issue still happens in downstream package, see dai-shi/waku#49

@danny-avila
Copy link

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.

@ArnaudBarre
Copy link
Member Author

Took me some time but this issue seems to come from other plugins that don't re-use the rollup.onWarn config.
Fix for vite-plugin-node-polyfills here: davidmyersdev/vite-plugin-node-polyfills#53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle "use client" warning
4 participants