stereobooster/react-snap

Getting react-app to work

VasileStelian opened this issue · 0 comments

Hello, I just can't get react-snap to work. I've tried checking all the docs possible and all fixes.

My app is made with Vite create-react-app.

When running the postbuild with react-snap I am getting the following errors :

💬  console.log at /: Failed to load resource: net::ERR_FAILED
🔥  pageerror at /: SyntaxError: Unexpected token '?'

But it manages to crawl just once :

✅ crawled 1 out of 1 (/)

My website is diadrive.ro currently running an earlier build without post-building so it won't break. Deployed on Vercel.

This is my repo.
Git Repo

Running postbuild creates an 200.html. And stops.
If I would change the source in package.json to "/" it would crawl just one and give the following error:
console.log at /: Failed to load module script: The server responded with a non-JavaScript MIME type of "text/jsx". Strict MIME type checking is enforced for module scripts per HTML spec.

Please if you have the time take a look and tell me what could the issue be.