Mastering React Compilation with Bun.js: Step-by-Step | Gui Bibeau

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 13

  • @pr0fanator
    @pr0fanator 10 หลายเดือนก่อน +3

    Where is video about server side rendering with client components?

    • @guibibeau
      @guibibeau  10 หลายเดือนก่อน +1

      The two bun videos did not do super well so I did not invest more time in it.
      I might revisit if demand for it is high.

  • @JohnBuildWebsites
    @JohnBuildWebsites ปีที่แล้ว +1

    Like the video, but is there a step missing? Doesn't run the build or dev script for me at all, despite going over the video multiple times now. I would normally share the error but it was way to big! It seems to be an issue with ReactDom updating root I believe?
    Never mind - I am an idiot and typed 'outDir' instead of 'outdir'

  • @toby_solutions
    @toby_solutions ปีที่แล้ว +1

    Amazing stuff, Gui! I love this 🤔🤔

    • @guibibeau
      @guibibeau  ปีที่แล้ว +1

      Thanks! 😃 you probably broke a record for watching quickly!
      My initial attempt was to do also server components but I need to write a lot more code and it will be for a future video

    • @toby_solutions
      @toby_solutions ปีที่แล้ว +2

      @@guibibeau Yeah 😅😅. My comment was actually dropped when I was 2 minutes into the video.
      I really did like the topic of the video and the overall idea 🤔🤔. Superb!

  • @slsaho
    @slsaho ปีที่แล้ว

    Awesome!
    How does this work out in a team setting ? what if I use bun and rest of us use node instead ?
    btw installing bun now

    • @guibibeau
      @guibibeau  ปีที่แล้ว +1

      To use it for running commands like bun run dev there is no problem. The issue comes if you install dependencies. It’s better that all use the same package manager to ensure consistency in dependency versions and behavior.

  • @NoahNobody
    @NoahNobody หลายเดือนก่อน

    I can't run that example... (note: arrows point to the and )
    ```
    5 | root.render(Hello, World!);
    ^
    error: Unexpected >
    at /opt/lampp/htdocs/pairs/bun/index.ts:5:14
    5 | root.render(Hello, World!);
    ^
    error: Syntax Error!!
    at /opt/lampp/htdocs/pairs/bun/index.ts:5:29
    ```

    • @guibibeau
      @guibibeau  หลายเดือนก่อน +1

      Full disclosure, this was really just an exploration and not meant to be used as the base of an app.
      I would advise to use vite instead for compiling react.

  • @risehit
    @risehit 5 หลายเดือนก่อน

    I get the error: "bun build v1.1.13 (bd6a6051) error: Missing entrypoints. What would you like to bundle?" My Scripts is "scripts": {"build:bun": "bun build", } 😔

    • @guibibeau
      @guibibeau  4 หลายเดือนก่อน

      From that error message you did not specify which filepath to build. Try something like `bun build index.ts`