I'm currently working on a SPA React app, but when I try to fetch as google I get a blank page with the error Uncaught SyntaxError: Unexpected token =>
. I did install babel-polyfill and also imported it as first import. I've been reading and trying multiple things but I can't seem to fix it, anyone experience with this?
The site is https://sharetune.nl
The error image is shown below:
Edit: I tried to fetch as google while my app.js wasn't minified. the error is in this piece of code
const prefix = (items) => {
const result = {}
for (const i in items) {
result[items[i]] = swalPrefix + items[i]
}
return result
}
You can view the app.js file at http://sharetune.nl/js/app.js