Replies: 1 comment
-
|
What is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I'm trying to get started with shadcn-svelte.
I've installed the cli and go with the defaults, and installed the card component.
When I run
pnpm checkI get several errors regarding the"$lib"alias, for example:Interestingly, if I use any of the following variations, the results are always the same in
.svelte-kit/tsconfig.json:$lib: "./src/lib"'$lib': "src/lib"$lib: "hello world!!"- yes, even using this, the generatedtsconfig.jsonvalue does not change.svelte.config.jsfile, but the$libentry seems to come from somewhere else, and any attempts to change it are ignored.The value in the
.sveltekit/tsconfig.jsonis:If I
ls ./src/lib/I see the following:So, the setting looks correct, but for some reason
pnpm checkand vscode seem to have problems with the alias.Any help is appreciated.
I see from the sveltekit docs that
$libis built in:Nonetheless, I dont understand why it isnt working.
Beta Was this translation helpful? Give feedback.
All reactions