SolidJSS
SolidJSโ€ข13mo agoโ€ข
5 replies
lacidar

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/*",
      }
    }
  }
});

Still the same issue. Its not working.
Was this page helpful?