-
-
Notifications
You must be signed in to change notification settings - Fork 108
Sveltekit: svelte-add is not working #441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, sorry for the delay. I'll try to fix it soon. Unfortunately, Sveeltekit didn't get much love for some time. Now where it's nearer to the 1.0 I hope the API stays more stable. Unfortunately, the Sveltekit CLI doesn't give a lot of possibilities to manipulate e.g. the output folder to match the Nx folder scheme and that makes the integration at all really hard |
I understand ! To be honest I left NX to have a old styled monorepo. |
The default output folder can be set with The output folder for packaging can be set with That's not the cli, but it still provides the necessary options. I'm currently using the sveltekit plugin, and it works perfectly. I simply had to change svelte.config.js to: import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
package: {
dir: "../../dist/packages/svelte/package"
},
vite: {
build: {
outDir: "../../dist/packages/svelte/build"
}
}
},
};
export default config; Btw, that last fix removing |
@Marr11317 oh great thank you. Seems I have to take a look at it again. I’ll release a new version soon and add your suggestion as well. |
Apparently, the value for |
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:
Expected behavior
Should work :)
Additional context
The text was updated successfully, but these errors were encountered: