Giter Site home page Giter Site logo

Comments (19)

kiliman avatar kiliman commented on May 20, 2024

It's hard to say without seeing more code. It should just work.

Anyway, have you tried creating a new Vite project to verify your setup works? Also try deleting node_modules and reinstalling to see if that clears it up.

Also test if your app works as a production build vs vite dev server. Run npm run build && npm start

from remix.

Apsysikal avatar Apsysikal commented on May 20, 2024

I have not tested it with a new Vite template. Also I don't know to what extend I'd need to go to be sure it's an error with the current setup. Also it doesn't happen in a reproducable way - Or not that I'd notice a pattern.
I did not see it happen after building, which leads me to believe it's a problem in dev mode.

The code is available here and is based on the Indie Stack: https://github.com/Apsysikal/mokupona/tree/dev

from remix.

kiliman avatar kiliman commented on May 20, 2024

Hmm.. I'm not seeing any errors, except for hydration failure.

I would recommend using React Canary to resolve those errors.

{
  "dependencies": {
    "react": "18.3.0-canary-a870b2d54-20240314",
    "react-dom": "18.3.0-canary-a870b2d54-20240314"
  },
  "overrides": {
    "react": "18.3.0-canary-a870b2d54-20240314",
    "react-dom": "18.3.0-canary-a870b2d54-20240314"
  }
}
image

Hydration error only on className (which could be resolved using <body suppressHydrationWarning>

image

from remix.

Apsysikal avatar Apsysikal commented on May 20, 2024

Hmm, I can try it with canary. Thank you :)

Are you on the main branch? I think that one is not on vite just yet.

from remix.

dkjym avatar dkjym commented on May 20, 2024

This is happening for me too.

It happens when I edit a file and navigate to an index page.

When I delete all the meta functions it won't happen.

from remix.

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.