Skip to content

[vite]: Rollup failed to resolve import "react-redux" #20278

Closed Answered by ThePeach
ThePeach asked this question in Q&A
Discussion options

You must be logged in to vote

I managed to get around this specific issue by adding

    optimizeDeps: {
      include: ['react-redux', '@redux/toolkit'],
    },

to the vite.config.js file. Now I'm stuck on another problem.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ThePeach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants