Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting react-app to work #581

Open
VasileStelian opened this issue Mar 24, 2024 · 0 comments
Open

Getting react-app to work #581

VasileStelian opened this issue Mar 24, 2024 · 0 comments

Comments

@VasileStelian
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant