Replies: 2 comments 4 replies
-
Hey @khera, I haven't tried remix yet but we should have an integration that might work on it soon. In the meantime do you think you could setup a minimal reproducible example? We have css included in our js which vite can handle. Usually its a plugin that can't handle it. It was just a single config option to get it working in nuxt, so if you set up the example maybe I can figure out what it is supposed to be in remix. |
Beta Was this translation helpful? Give feedback.
-
While making a test case, I found vitejs/vite#9487 which says to add this to my ssr: {
noExternal: ['@scalar/api-reference-react']
}, and it worked. For reference, the entire page I made is this simple: import { ApiReferenceReact } from '@scalar/api-reference-react'
import apiSpec from '~/petstore.json';
export default function ApiSpec() {
return (
<>
<ApiReferenceReact
configuration={{
spec: {
content: apiSpec
},
}}
/>
</>
);
} My only question left is if there is a way to reduce the number of packages this needs. It installed 627 packages to add |
Beta Was this translation helpful? Give feedback.
-
I tried to use the React example to make a page in my Remix app to render my spec file. I'm stuck at this error:
According to the Remix + Vite docs, the Vite builder should just work with css file imports, and they offer nothing in the way of any configurations I should set.
Does anyone have a full recipe to render my API spec with Remix?
Beta Was this translation helpful? Give feedback.
All reactions