-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Malformed svelte.config.js #1630
Comments
This sounds like maybe #1618. From those error messages, it's definitely not the latest version of Kit getting used somewhere. |
updated to "@sveltejs/kit": "^1.0.0-next.113" and I am pass the original error on this issue, but a new one was generated see below. At least the app is running (who knows for how long :) ) (node:32450) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'copy_server_files' of undefined
at adapter (/mnt/Backup/sys/now/svelte-kit/node_modules/@sveltejs/adapter-node/index.js:8:10)
at file:///mnt/Backup/sys/now/svelte-kit/svelte.config.js:13:11
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async load_config (file:///mnt/Backup/sys/now/svelte-kit/node_modules/@sveltejs/kit/dist/cli.js:502:17)
at async get_config (file:///mnt/Backup/sys/now/svelte-kit/node_modules/@sveltejs/kit/dist/cli.js:557:10)
at async file:///mnt/Backup/sys/now/svelte-kit/node_modules/@sveltejs/kit/dist/cli.js:615:18
(Use `node --trace-warnings ...` to show where the warning was created)
(node:32450) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:32450) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit cod |
This fixed this issue import node from '@sveltejs/adapter-node'
kit: {
adapter: {
adapt: async () => await node()
},
} |
Ok. I'll go ahead and close this since it sounds like the issue is fixed now |
@benmccann
Thanks |
The adapter isn't That shouldn't be necessary. I just tested on my project and don't need to do it. Can you provide a repo where it is necessary? |
@benmccann
I get this:
But if I use:
as @mylastore wrote in his last comment everything works. |
That's not enough info to reproduce. I have basically the same exact config and don't get the error you're talking about. I think you probably have an outdated dependency or something, but can't tell from the info here |
I'll try to update and see how it goes. |
The issue is that you need to move almost all devDependencies to dependencies and that work for me specifically when you deployed |
updated today to latest sveltekit and adapter node see below and using example configuration listed on sveltekit documentation and I am using node adapter as you can see.
now getting this error:
The text was updated successfully, but these errors were encountered: