triplex icon indicating copy to clipboard operation
triplex copied to clipboard

Next.js APIs (Link/Router/RSC) don't work with Triplex

Open itsdouges opened this issue 9 months ago • 2 comments

  • Images via imports aren't the same, e.g:
    import perlin from "@/shaders/material-steam/perlin.jpg"
    
    Results in a string in Triplex, but an object in Next.js.
  • Router links / context hooks throw
  • Process.env throws when loading anything from Next.js

itsdouges avatar Mar 25 '25 21:03 itsdouges

https://github.com/storybookjs/vite-plugin-storybook-nextjs could be an option to resolve this!

itsdouges avatar Jun 11 '25 03:06 itsdouges

https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc for implementing RSC

itsdouges avatar Aug 05 '25 05:08 itsdouges