skip to Main Content

Been running into a couple of issues trying to setup reduxt toolkit in next 14 as see n below. i’ve followed the exact steps on several youtube videos and articles online. but stil getting stuck here as i can’t wrap my head around what seems to be the issue
enter image description here

when it get’s compiled by next on the frontend i get this error
enter image description here

and this is the store.ts file
enter image description here

2

Answers


  1. Your file needs a .tsx extension, not a .ts extension.

    Login or Signup to reply.
  2. I am trying to add Provider to the layout.js but getting an error. Please how can I resolve this?

    Screenshot of the error

    Screenshot of the code

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search