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
-
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 check
I 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.json
value does not change.svelte.config.js
file, but the$lib
entry seems to come from somewhere else, and any attempts to change it are ignored.The value in the
.sveltekit/tsconfig.json
is:If I
ls ./src/lib/
I see the following:So, the setting looks correct, but for some reason
pnpm check
and vscode seem to have problems with the alias.Any help is appreciated.
I see from the sveltekit docs that
$lib
is built in:Nonetheless, I dont understand why it isnt working.
Beta Was this translation helpful? Give feedback.
All reactions