SvelteKit - [CLI Error]: Failed to find tsconfig.json (or jsconfig.json). See: https://www.shadcn-svelte.com/docs/installation#opt-out-of-typescript #1282
Labels
type: documentation
A change or addition to the documentation
Change Type
Addition
Proposed Changes
When the project does not have either-or
{t,j}sconfig.json
,depending on the (optional)
components.json#typescript
value, eitheror
will be shown.
This can be resolved by adding either-or
{t,j}sconfig.json
with content:Perhaps this can/should be added to
sites/docs/src/content/installation/sveltekit.md
.Another option might be to change
packages/cli/src/utils/sveltekit.ts
.However, this is posted as Docs Issue, since posting as feature-request will not be considered here :
Yet another thing that can be observed, is that the link in the error-message points to
#opt-out-of-typescript
, even when there is nocomponents.json
(yet) and also whencomponents.json
contains"typescript": false
(which is what is mentioned at that anchor).The text was updated successfully, but these errors were encountered: