lacidar
lacidar
SSolidJS
Created by lacidar on 1/14/2025 in #support
solid styled starter template(solid-start) bug
No description
3 replies
SSolidJS
Created by lacidar on 1/10/2025 in #support
solid-start is unable to resolve import aliases
I've added some import aliases in tsconfig.json file. The typescript and IDE part correctly resolved it. It didn't work in the solidjs server tho. So, I modified the app.config.ts. Here's my updated part.
export default defineConfig({
ssr: true,
vite: {
resolve: {
alias: {
"@components/*": "./src/components/*",
"@ui/*": "./src/components/common/ui/*",
"@pages/*": "./src/pages/*",
"@hooks/*": "./src/hooks/*",
"@api/*": "./src/api/*",
"@libs/*": "./src/libs/*",
}
}
}
});
export default defineConfig({
ssr: true,
vite: {
resolve: {
alias: {
"@components/*": "./src/components/*",
"@ui/*": "./src/components/common/ui/*",
"@pages/*": "./src/pages/*",
"@hooks/*": "./src/hooks/*",
"@api/*": "./src/api/*",
"@libs/*": "./src/libs/*",
}
}
}
});
Still the same issue. Its not working.
6 replies