question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sveltekit: svelte-add is not working

See original GitHub issue

Describe the bug When running nx add {sveltekit-app} --package {package} it fails with error.

To Reproduce Steps to reproduce the behavior: I simply create a new project with sveltekit plugin:

nx g @nxext/sveltekit:app frontend
nx add frontend --package tailwindcss

Expected behavior Should work 😃

Additional context

❯ nx add frontend --package tailwindcss
➕ Svelte Add (Version 2022.01.19.00)
There is no valid Svelte project in this directory because there doesn't seem to be a bundler installed (Vite, Rollup, Snowpack, or webpack).
Create or find an existing issue at https://github.com/svelte-add/svelte-add/issues if this is wrong.
ERROR: Something went wrong in @nrwl/run-commands - Command failed: npx svelte-add tailwindcss

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ecstremacommented, Feb 22, 2022
0reactions
ecstremacommented, Feb 22, 2022

Apparently, the value for kit.vite.build.outDir is controlled by svelte and cannot be customised. I’ll open an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · svelte-add/svelte-add - GitHub
Easily add integrations and other functionality to Svelte apps - Issues ... svelte-add/scss creates a new vite.config.js for sveltekit apps that use ...
Read more >
Announcing SvelteKit 1.0
After two years in development, SvelteKit has finally reached 1.0. As of today, it's the recommended way to build Svelte apps of all...
Read more >
Getting an error when creating new svelte app using npm ...
I am not sure where you got the command from? It should be: npm create svelte@latest my-app See the guide here: kit.svelte.dev.
Read more >
svelte-add - npm
Start using svelte-add in your project by running `npm i svelte-add`. There are 3 other projects in the npm registry using svelte-add.
Read more >
Full Stack SvelteKit For Beginners - Joy of Code
To understand the problems meta-frameworks like SvelteKit solve we need to go ... Hydration is a term that means adding JavaScript to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found