When i type "createSlice" it is not showing any intellisense in VS CODE. create slice VS code
CodePudding user response:
You never actually imported the createSlice
function.
Your file needs an appropriate import statement:
import { createSlice } from "@reduxjs/toolkit";
CodePudding user response:
Make sure two things:
- Did you import it??? Like this :
import { createSlice } from "@reduxjs/toolkit";
- Are you sure that reac-toolkit is installed? Check your Json file, if not then do this:
npm install @reduxjs/toolkit ;