You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[!] (plugin rollup-plugin-invariant) SyntaxError: Unexpected token (18:7)
src/index.tsx (18:7)
SyntaxError: Unexpected token (18:7)
at Parser.pp$4.raise (/node_modules/rollup/dist/shared/rollup.js:16909:13)
at Parser.pp.unexpected (/node_modules/rollup/dist/shared/rollup.js:14417:8)
at Parser.pp.expect (/node_modules/rollup/dist/shared/rollup.js:14411:26)
at Parser.pp$1.parseExportSpecifiers (/node_modules/rollup/dist/shared/rollup.js:15402:8)
at Parser.pp$1.parseExport (/node_modules/rollup/dist/shared/rollup.js:15323:28)
at Parser.pp$1.parseStatement (/node_modules/rollup/dist/shared/rollup.js:14593:72)
at Parser.pp$1.parseTopLevel (/node_modules/rollup/dist/shared/rollup.js:14474:21)
at Parser.parse (/node_modules/rollup/dist/shared/rollup.js:14266:15)
at Function.parse (/node_modules/rollup/dist/shared/rollup.js:14297:35)
at Graph.contextParse (/node_modules/rollup/dist/shared/rollup.js:20278:38)
The text was updated successfully, but these errors were encountered:
Hi, after adding browserslist to package.json I started getting
Unexpected token
error when building the bundle, do you might have an idea why?When there is no browserslist on the
package.json
it all works finebrowserlist:
devDependecies:
Error:
The text was updated successfully, but these errors were encountered: