You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you built a project with adapter-node, node build does not work without @sveltejs/kit and svelte in node_modules.
Cannot find package '@sveltejs/kit' imported from /Users/Romain/Code/tutos/sveltekit-app/build/app.js
On the kit template projects (demo or skeleton), @sveltejs/kit and svelte are listed as devDependencies.
My understanding was that you should be able to run a project in production without any devDependencies installed.
Plus i thought that all prod dependencies were packaged by rollup (via vite) on build, which does not seem to be the case since we still have import such as
// in build/app.js for DEMO APPimportcookiefrom"cookie";
I'm not sure why we should not keep @sveltejs/kit and svelte as devDependencies, but at the same time we currently need to have the corresponding folders in node_modules...
Am i missing something here ?
The text was updated successfully, but these errors were encountered:
Once you built a project with
adapter-node
,node build
does not work without@sveltejs/kit
andsvelte
innode_modules
.Cannot find package '@sveltejs/kit' imported from /Users/Romain/Code/tutos/sveltekit-app/build/app.js
On the kit template projects (demo or skeleton),
@sveltejs/kit
andsvelte
are listed asdevDependencies
.My understanding was that you should be able to run a project in production without any
devDependencies
installed.Plus i thought that all prod
dependencies
were packaged byrollup
(viavite
) on build, which does not seem to be the case since we still have import such asI'm not sure why we should not keep
@sveltejs/kit
andsvelte
asdevDependencies
, but at the same time we currently need to have the corresponding folders innode_modules
...Am i missing something here ?
The text was updated successfully, but these errors were encountered: