T
TanStack7mo ago
fascinating-indigo

Client assets (styles/bundles) aren't loaded when using bun preset

Hey guys, i have an interesting issue. When i'm using the bun preset, none of the build assets for the clients will work, but using the node-server preset it works just fine. The config is pretty straight forward too:
export default defineConfig({
vite: {
plugins: [
viteTsConfigPaths({
projects: ['./tsconfig.json']
}),
tailwindcss()
]
},
server: {
preset: 'node-server'
},
tsr: {
autoCodeSplitting: true
}
});
export default defineConfig({
vite: {
plugins: [
viteTsConfigPaths({
projects: ['./tsconfig.json']
}),
tailwindcss()
]
},
server: {
preset: 'node-server'
},
tsr: {
autoCodeSplitting: true
}
});
No description
9 Replies
rare-sapphire
rare-sapphire7mo ago
Hi, we have the same - versions pre 1.102.5 work but after that no assets or files in /public are served. As you say, node-server preset works fine. Haven't had time to make a repro
afraid-scarlet
afraid-scarlet7mo ago
file a GitHub issue with a repro please
rare-sapphire
rare-sapphire7mo ago
GitHub
Build with nitro preset 'bun' serves all static assets with a 404 ·...
Which project does this relate to? Start Describe the bug We recently upgraded an app from @tanstack/start v1.102.5 and now see that in the production build with the 'bun' preset, static as...
afraid-scarlet
afraid-scarlet7mo ago
is v1.102.5 the last one to work or just the last one you tested that worked?
rare-sapphire
rare-sapphire7mo ago
The last one I tested
afraid-scarlet
afraid-scarlet7mo ago
would help tremendously if you could find the last that worked
rare-sapphire
rare-sapphire7mo ago
I will have a fiddle "@tanstack/start-config": "1.102.6" works "@tanstack/start-config": "1.103.0" doesn't
fascinating-indigo
fascinating-indigoOP7mo ago
Same for me
afraid-scarlet
afraid-scarlet7mo ago
ok thanks for narrowing it down

Did you find this page helpful?