'@reduxjs/toolkit Intellisense not appearing in VS Code

Using vscode, intellisense does not detect @reduxjs/toolkit. The code is working but the intellisense is not. I already have ES7+ React/Redux/React-Native snippets extension

Here are 2 examples:

  1. No import autocomplete. Additionally, when I finish typing the whole thing import { createSlice, configureStore } from "@reduxjs/toolkit";, ctrl + left click to the library does not take me to its corresponding node_modules directory. Nothing happens.

enter image description here

  1. The variable returned by createSlice() does not trigger autocomplete. The expected result is increment, decrement, increase, toggleCounter ie counterslice.actions.increment

enter image description here

Any ideas on the fix?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source