There was an issue with rollup not correctly bundling the imported @reduxjs/toolkit package.
The error was a bit confusing, and it was hard to find info regarding it on the forums.
Debugging led me to including .tsx files in the rollupSwc plugin in rollup.config.js.
Original error
[!] RollupError: src/sounding.tsx (35:8): Expected ';', '}' or <eof> (Note that you need plugins to import files that are not JavaScript)
src/sounding.tsx (35:8)
There was an issue with rollup not correctly bundling the imported
@reduxjs/toolkit
package. The error was a bit confusing, and it was hard to find info regarding it on the forums. Debugging led me to including.tsx
files in therollupSwc
plugin inrollup.config.js
.Original error