Sveltekit: Can't serve newly generated app
See original GitHub issueDescribe the bug
After I generated a new app with nx g @nxext/sveltekit:app my-app
, I get an error when trying to serve the app with npx nx serve my-app
:
> nx run my-app:serve
> NX Cannot read properties of undefined (reading 'length')
TypeError: Cannot read properties of undefined (reading 'length')
at interpolateArgsIntoCommand (/Users/el_stefano/Documents/Development/nx-test/my-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:193:47)
at /Users/el_stefano/Documents/Development/nx-test/my-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:106:21
at Array.forEach (<anonymous>)
at normalizeOptions (/Users/el_stefano/Documents/Development/nx-test/my-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:104:22)
at /Users/el_stefano/Documents/Development/nx-test/my-app/node_modules/nx/src/executors/run-commands/run-commands.impl.js:41:28
at Generator.next (<anonymous>)
at fulfilled (/Users/el_stefano/Documents/Development/nx-test/my-app/node_modules/tslib/tslib.js:115:62)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I created a nest app in the same workspace and it works.
To Reproduce Steps to reproduce the behavior:
- Generate new app with
nx g @nxext/sveltekit:app my-app
. - Serve the app with
npx nx serve my-app
Expected behavior
npx nx serve my-app
serves the app
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:9
Top Results From Across the Web
Cannot run a newly created project · Issue #2001 · sveltejs/kit
I can't reproduce this with pnpm dev or pnpm build when using the static adapter, for either the JS- or TS-based demo app....
Read more >Introduction • Docs • SvelteKit
SvelteKit is a framework for rapid development of robust, performant web applications. Building an app with all the modern best practices is fiendishly ......
Read more >SvelteKit Node App Deploy: Linux Cloud Hosting | Rodney Lab
In the example we look at, we use the sharp package to resize images and also to generate next-gen format images on our...
Read more >How to Return File from SvelteKit Endpoint - Stack Overflow
The static folder works, but it is not meant to carry application data—files in this folder represent new routes that are served directly...
Read more >Authentication in Svelte using cookies - LogRocket Blog
Create a Svelte app using SvelteKit that implements a cookie for authentication. ... which was created by the svelte-add command:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Got this same error today. Thanks for the workaround @luechtdev
Getting the same error, any work around for now?