react-snap icon indicating copy to clipboard operation
react-snap copied to clipboard

pageerror at /: SyntaxError: Unexpected token '.'

Open aakashpgandhi opened this issue 2 years ago • 14 comments

pageerror at /: SyntaxError: Unexpected token '.' at Object../node_modules/usehooks-ts/dist/esm/useEventListener/useEventListener.js (http://localhost:45678/main.js:14103:1) at webpack_require (http://localhost:45678/main.js:19980:42) at eval (webpack://frontend/./node_modules/usehooks-ts/dist/esm/useEventListener/index.js?:5:75)
at Module../node_modules/usehooks-ts/dist/esm/useEventListener/index.js (http://localhost:45678/main.js:14092:1) at webpack_require (http://localhost:45678/main.js:19980:42) at eval (webpack://frontend/./node_modules/usehooks-ts/dist/esm/useClickAnyWhere/useClickAnyWhere.js?:5:75) at Module../node_modules/usehooks-ts/dist/esm/useClickAnyWhere/useClickAnyWhere.js (http://localhost:45678/main.js:13927:1) at webpack_require (http://localhost:45678/main.js:19980:42) at eval (webpack://frontend/./node_modules/usehooks-ts/dist/esm/useClickAnyWhere/index.js?:5:75)
✅ crawled 1 out of 1 (/)

i am getting this error while running npm run postbuild

aakashpgandhi avatar Apr 18 '22 07:04 aakashpgandhi

Hi @aakashpgandhi I am getting a similar error. Have you been able to resolve it?

chrismadufor avatar Sep 19 '22 04:09 chrismadufor

Hey @aakashpgandhi @chrismadufor everything was working fine for me for the last year until today that I started getting this error, without any changes to the node version & packages 🤷🏽‍♂️ Did you find any solution?

stefanoschrs avatar May 01 '23 16:05 stefanoschrs

same issue here with vite

Silur avatar Aug 28 '23 10:08 Silur

Hi! Having this error in a React project on a Mac, but it runs just fine in another React project on a Windows. I already checked the dependencies, the code itself, syntax errors, and I found nothing. Any insight on this?

Thanks!

sbaptista18 avatar Jan 02 '24 15:01 sbaptista18

I'm seeing pageerror at /: SyntaxError: Unexpected token '?' on my react project (With vite & typescript)

OmarAbdo avatar Jan 18 '24 13:01 OmarAbdo

same one

react-snap

🔥 pageerror at /: SyntaxError: Unexpected token '?'

✅ crawled 1 out of 1 (/)

dimonb avatar Jan 25 '24 12:01 dimonb

any solution

ashu-dev-ops avatar Mar 06 '24 10:03 ashu-dev-ops

same here

JSpiner avatar Apr 07 '24 15:04 JSpiner