`vinxi build` fails with RollupError during unecessary "Preparing app for node-server... "
Hey there,
so when I run
npm run build
which really runs vinxi build
as of solid 0.4.* it works locally.
But when run as part of a github action, it fails with
So, this seems to happend AFTER the .output/public
folder is created, the next step is Initializing prerenderer
.
But I'm not using any node-server, how can I tell it that it doesn't have to do that during CI steps?12 Replies
my vite-config just says:
so I really only need a statically built CSR app. so the whole
Preparing app for node-server...
isn't needed?
versions:
Are you able to reproduce this in ie stackblitz?
ah, yes, never used stackblitz, let me research how to do that
is there a stackblitz solid-start template for 0.4.* somewhere?
trying to set one p from scratch but it's fighting me a little. I did add all the usual solid-start files but now I don't know how to tell it to run vinxi to create the output folder
when first I set up the new project with
"@solidjs/start": "^0.4.4",
it worked.
Then I deleted my package-lock, ran install again, at which point it went to 0.4.8
and had the above RollupError
vinxi dev
works fine though, it's only when I run vinxi build
that it fails to generate the ouput
same with 0.4.9You can start from one of the samples like this:
https://stackblitz.com/github/solidjs/solid-start/tree/main/examples/basic
StackBlitz
Solid-start Basic Example - StackBlitz
Run official live example code for Solid-start Basic, created by Solidjs on StackBlitz
mhmm, that doesn't seem to work either:
https://stackblitz.com/edit/github-b1xtbj-rdgvk6?file=package.json
ah you know what, maybe I need to use the suid-vite plugin again?
Since the 0.4.* vite.config.ts doesn;'t have a solid-plugin anymore, maybe that is missing!
the old
0.3.*
world, I used to have:
problem is, tha the new defineConfig(baseConfig?: SolidStartInlineConfig)
in @solidjs/start/config
doesn't have a plugins
parameter anymore...
(although I do wonder, since my site built fine a few days back, with just the default solid-start vite.config.ts , why it fails now)i don't get any errors anymore with the suid plugin. how can i test i the theme works?
here's an example theme file:
Konrad Feiler
StackBlitz
Solid-start Basic Example (forked) - StackBlitz
Run official live example code for Solid-start Basic, created by Solidjs on StackBlitz
then you add it in the app.tsx:
and then for example you can use
<Paper>
or <Typography>
which will use the themethat's actually pretty cool - thanks for sharing. Will consider it for the next project.
especially useful when you create a functional service without a proper designer, and everyone is fine if it looks more or less like google sheets or gmail UI