ⱼ ₒ ₑ
ⱼ ₒ ₑ
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start Vinxi complaining about public and can't resolve public fonts
I appreciate the clarifications and support
8 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start Vinxi complaining about public and can't resolve public fonts
Thank you
8 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start Vinxi complaining about public and can't resolve public fonts
does it not matter?
8 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start Vinxi complaining about public and can't resolve public fonts
/fonts/Geist-SemiBold.woff2 referenced in /fonts/Geist-SemiBold.woff2 didn't resolve at build time, it will remain unchanged to be resolved at runtime yeah this is my issue
8 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start HMR not rebuilding styles on class change
Again I don't know if this is standard or optimal but it's working for me with Tailwind 4.0 and SolidStart
6 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start HMR not rebuilding styles on class change
Use in vite config like so
vite: {
plugins: [
tailwindcss(),
forceTailwindHMR({
tailwindPath: "pathToCssFileHere"
})
],
}
vite: {
plugins: [
tailwindcss(),
forceTailwindHMR({
tailwindPath: "pathToCssFileHere"
})
],
}
6 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start HMR not rebuilding styles on class change
Okay well I just scuffed into existence this vite plguin that seems to work I have no clue if it's ideal but it works:
export default function forceTailwindHMR(config = {}) {
const {
tailwindPath = "/src/tailwind.css",
fileExtensions = ['.tsx', '.jsx', '.html', '.css'],
} = config;

return {
name: "force-tailwind-hmr",
async handleHotUpdate({ file, server, modules }) {
if (fileExtensions.some((ext) => file.endsWith(ext))) {
const tailwindModule = await server.moduleGraph.getModuleByUrl(tailwindPath);

if (tailwindModule) {
server.moduleGraph.invalidateModule(tailwindModule);
return [...modules, tailwindModule];
}

return modules;
}
},
};
}
export default function forceTailwindHMR(config = {}) {
const {
tailwindPath = "/src/tailwind.css",
fileExtensions = ['.tsx', '.jsx', '.html', '.css'],
} = config;

return {
name: "force-tailwind-hmr",
async handleHotUpdate({ file, server, modules }) {
if (fileExtensions.some((ext) => file.endsWith(ext))) {
const tailwindModule = await server.moduleGraph.getModuleByUrl(tailwindPath);

if (tailwindModule) {
server.moduleGraph.invalidateModule(tailwindModule);
return [...modules, tailwindModule];
}

return modules;
}
},
};
}
6 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start HMR not rebuilding styles on class change
I can get around it by saving the tailwind.css source but that's obviously not ideal
6 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
Solid Start HMR not rebuilding styles on class change
I have the tailwind 4.0 plugin for postCSS and vite integrated, but still nothing
6 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
How to use server function & suspense
TY
9 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
How to use server function & suspense
Sorry I should have done that
9 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
How to use server function & suspense
Yes
9 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
How to use server function & suspense
This doesn't work? It just gives a "Script error" and no discernable output for me to work with
9 replies
SSolidJS
Created by ⱼ ₒ ₑ on 1/17/2025 in #support
How to use server function & suspense
In the future there will likely be API calls and it will be implemented differently but I'm just trying to grasp basic ideas ATM
9 replies