You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using react-spring v8, following along the docs for Parallax when I ran into this issue and kept reading:
@azizhk The current v9 beta exports the renderprops API from react-spring (no /renderprops required), and react-spring/web is identical to react-spring, so you should be able to do:
import{Spring}from'react-spring/web.cjs'
Not sure what the solution for v8 is. I'm not contributing to it.
and my import statement: import { Parallax, ParallaxLayer } from 'react-spring'
But on yarn dev I get the following error:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
I've ruled out other causes because it compiles when I comment out Parallax. Looks like I need to pass in a prop that used to be optional...should I be passing in the ref prop? Next.js v9.4.4 on Node 14.4.0
The text was updated successfully, but these errors were encountered:
I was using react-spring v8, following along the docs for Parallax when I ran into this issue and kept reading:
So I decided to try rc.3. My parallax looks like this:
and my import statement:
import { Parallax, ParallaxLayer } from 'react-spring'
But on
yarn dev
I get the following error:I've ruled out other causes because it compiles when I comment out Parallax. Looks like I need to pass in a prop that used to be optional...should I be passing in the ref prop? Next.js v9.4.4 on Node 14.4.0
The text was updated successfully, but these errors were encountered: