Skip to content

Support for non Kit Svelte Projects #573

@negue

Description

@negue

I just wanted to try to install tailwind with the cli

npx sv add tailwindcss

but this resulted in

Welcome to the Svelte CLI! (v0.8.6)
│
■  TypeError: Cannot read properties of undefined (reading 'libDirectory')
│      at Object.setup (file:///Users/negue/.npm/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:1247:39)
│      at setupAddons (file:///Users/negue/.npm/_npx/6ef4a8874203b3d8/node_modules/sv/dist/install-BTJ6iCTS.js:1045:16)
│      at runAddCommand (file:///Users/negue/.npm/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:6987:28)
│      at async file:///Users/negue/.npm/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:6872:25
│      at async runCommand (file:///Users/negue/.npm/_npx/6ef4a8874203b3d8/node_modules/sv/dist/bin.js:3934:3)

Is there maybe a workaround to get the CLI working with adding properties / configs somewhere?

I tried adding kit.libDirectory to the svelte.config.js but that sadly didn't help 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions