-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Could not find instance of React in given element #325
Comments
I'm also experiencing the same issue |
I have the same issue after updating to |
Same Issue with React 18. |
{
"resolutions": {
"resq": "^1.11.0"
},
} In <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Components App</title>
</head>
<body>
<div id="__cy_root" data-cy-root></div>
</body>
</html> In import { defineConfig } from "cypress"
export default defineConfig({
component: {
devServer: {
framework: "create-react-app",
bundler: "webpack",
},
},
env: {
'cypress-react-selector': {
root: '#__cy_root',
},
},
}) |
Repo seems to be dead. Issue still persists... |
this repo is not dead btw. We dont have an active usecase with react 18 at this moment. We will evaluate it soon. Looking for active contributors/maintainers |
@abhinaba-ghosh
I am getting this error while writing the cypress tests. I am using cypress code coverage. This is my test code.
describe("hello world text testing", () => {
before(() => {
cy.visit("/");
cy.waitForReact(1000, "#root", "node_modules/resq/dist/index.js");
});
it("login test", () => {
cy.react("Login");
});
});
The text was updated successfully, but these errors were encountered: