Skip to content

Using with Next.js and gives an error for ParallaxProvieder when using useController() #79

Closed
@hrahimi270

Description

@hrahimi270

Expected Behavior

Able to use useController() in my next.js app.

Actual Behavior

It throws an error that:

Error: Could not find react-scroll-parallax context value. Please ensure the component is wrapped in a <ParallaxProvider>

Steps to Reproduce the Problem

  1. I placed ParallaxProvieder in my _app.js file.
  2. I created my parallax component and it's working fine!
  3. I created a ParallaxCache component just like the example.
  4. I put ParallaxCache beside my parallax component and it gives me the error.

Environment

  • Next version: 9.0.5
  • Browser: chrome last update

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions