-
I follow the documentation recommandation to install de lib but i have an error with vite, somebody already use spartan ui kit in Analogjs app ? |
Beta Was this translation helpful? Give feedback.
Answered by
ajitzero
May 4, 2025
Replies: 1 comment 3 replies
-
Hi, can you please share the error message, OS, and package versions? For reference, here's an Analog app with Spartan UI & Tailwind 4: https://github.com/ajitzero/ng-vz/tree/main/apps/docs Commit where Spartan was added: ajitzero/ng-vz@c7947df |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @t1m4lc - I finally figured out the issue, and it's a missing Vite config.
For local projects mentioned in the TS Config files, we need to inform Vite if we want that. Analog docs mentions this here: Using TypeScript Config Path Aliases.
I initially got it working with
resolve.alias
, but the plugin approach is better. See this commit: ajitzero/simple-analog-spartan-app@02fc3dcIn your case, install this:
And in the vite config file, add this:
This will pick up any local libraries mentioned in the tsconfig.json file.
This …