FormidableLabs / FormidableLabs/react-ssr-prepass

TypeError: Cannot read properties of undefined (reading 'current')

Open
#95 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
603
Forks
26
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

### Question

Hello,

I'm using `next-urql`, which has ssr-prepass built in. After upgrading to React 19 and Next.js 15, I'm encountering an issue. According to an `urql` maintainer, this seems to be related to your library. Could you provide guidance on resolving this?

Thank you!

https://github.com/urql-graphql/urql/discussions/3732#discussioncomment-12246852

Edit 1:
I tried some dummy examples on the latest react and next packages and I am still getting the same error

```
if (typeof window === 'undefined') {
// some dummy element (div) to run prepass on
const element = createElement('div');

await ssrPrepass(element);
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.