Giter VIP home page Giter VIP logo

Comments (9)

brandonburkett avatar brandonburkett commented on May 28, 2024 1

I hit this on a really old project and traced it to a google maps iframe embed URL (that had a question mark). Setting the following config helped me:

  "reactSnap": {
    "skipThirdPartyRequests": true,
    "preconnectThirdParty": false
  }

from react-snap.

OmarAbdo avatar OmarAbdo commented on May 28, 2024

Same exact issue here, I found that adding "homepage": ".", to the root level of your package.json file will bypass the error. I don't think it's fixing the error completely because this allows react-snap to generate the HTML pages you'd expect but they are not rendered (all of them would have the same content as the default index.html page before rendering)

from react-snap.

TotalChris avatar TotalChris commented on May 28, 2024

Lol this did not work for me. Using react-router & Vite. This fix passed the syntax error but only rendered my root page. Any documentation where I can define my routes statically? Does this even work with react-router? Should I join the masses and move to Next.js? Am I real?

(Of course I'm aware that this package isn't actively maintained and I don't expect anyone to have these answers. Simply joking.)

from react-snap.

ashu-dev-ops avatar ashu-dev-ops commented on May 28, 2024

@brandonburkett did you find any solution ??

from react-snap.

miguelcaravantes avatar miguelcaravantes commented on May 28, 2024

same issue with the question mark

from react-snap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.