Using Raw plugin in Storybook #1446
-
|
Hey there, me again 😅 I followed the guide here for setting up raw imports in Storybook, but I'm still getting the below error:
I added logging to the Vite plugin and As usual, repo is https://github.com/EskiMojo14/neocities. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hello again! 😄 👋 Interesting, and yeah testing locally I can confirm the same, that the plugin is providing the expected response contents. I have a similar project using this setup though at a quick glance, one thing I did notice was that your project using is Vite 6, so that may be something to consider from my end. Let me play around with it though, and maybe worth a call out on the docs site if so, depending on what I find. 👍 I was going to surprise you with our built-in TypeScript support once i landed that SSG / hydration patch but then I was surprised when you already had a greenwood.config.ts and were already on the latest alpha lol 🙃 |
Beta Was this translation helpful? Give feedback.
-
|
Have some updates on the hydration issue, so shared a comment here and I think we can close this one down for now. 👍 |
Beta Was this translation helpful? Give feedback.

Ok, was able to figure out the issue, and it was just an intersection between .css files and Vite. Opened a PR which should be more accommodating now. 🤞
Somewhat unrelated, I noticed a couple things
In package.json these two options are pretty much doing the same thing
You should be able to just do this:
Or if you want something a little cleaner / terser with no hardcoded path to node_modules