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

with vite ssr "TypeError: Cannot read properties of undefined (reading 'isRequired')" #11665

Closed
veeramarni opened this issue Mar 12, 2024 · 3 comments

Comments

@veeramarni
Copy link

Issue Description

TypeError: Cannot read properties of undefined (reading 'isRequired')
    at /node_modules/@apollo/src/react/components/Query.tsx:32:26
    at async instantiateModule (file:///vite/dist/node/chunks/dep-G-px366b.js:54758:9)

Prop-types should be imported correctly in order to fix this issue

import { __rest } from "tslib";
import * as PropTypes from "prop-types"; <----- to import PropTypes from 'prop-types'
import { useQuery } from "../hooks/index.js";

Link to Reproduction

na

Reproduction Steps

No response

@apollo/client version

3.9.6

@jerelmiller jerelmiller added the 🏓 awaiting-team-response requires input from the apollo team label Mar 12, 2024
@veeramarni
Copy link
Author

i stopped using @apollo/client/react/components

Copy link
Contributor

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.

Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2024
@alessbell alessbell removed the 🏓 awaiting-team-response requires input from the apollo team label May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants