reduxjs/redux-toolkit

/dist/query/react is not exported from package @reduxjs/toolkit

rwilliams3088 opened this issue · 1 comments

I just went through and upgraded my react and redux dependencies so that I'd have access to some newer redux features (the selectors property in createSlice specifically). After doing this and resolving all the other errors, I'm left with this one:

Module not found: Error: Package path ./dist/query/react is not exported from package /project/path/node_modules/@reduxjs/toolkit (see exports field in /project/path/node_modules/@reduxjs/toolkit/package.json)

Looking around I don't see a separate install for rtk query, unless I missed it. Any ideas on how to resolve this?

Scratch that; I deleted the imports and had Visual Code add them back-in. Looks like it is now importing them from @reduxjs/toolkit/query instead of "@reduxjs/toolkit/query/react