Giter VIP home page Giter VIP logo

Comments (4)

jrestall avatar jrestall commented on June 7, 2024 1

Thanks again @cliffordfajardo!

I've updated the contributing guidelines with more details on needing to run pnpm run build:server before pnpm run dev.

  1. For the react-app you must run pnpm run build:server before pnpm run dev. If using stubs it doesn't currently work if the remix-react package has been stubbed, so you need to cd to packages/remix-react and run pnpm run prepack so that just that package isn't using jiti.

from remix-kit.

astahmer avatar astahmer commented on June 7, 2024

hey, just stumbled on the same issue
could it be worth adding a "postinstall": "pnpm build:server", you don't even need to know about this ?

from remix-kit.

jrestall avatar jrestall commented on June 7, 2024

In the next release I'm hoping to bring the entire server files under Vite control, so there will be no need to build or modify them with RemixKitRunner. This will also solve the need to build the server file before running dev.

from remix-kit.

jrestall avatar jrestall commented on June 7, 2024

This should now be fixed.

  • I've fixed the issue with jiti and @remix-kit/react by auto-injecting the ReactRefresh code so that there's no import to cause jiti issues.
  • Vite Node will now dynamically compile server.ts files so there's no need to run build:server before dev.

Make sure you are running pnpm run dev rather than npx remix-kit dev so that it passes the origin url of the remix app server from the npm scripts.

from remix-kit.

Related Issues (12)

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.