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
When scaffolding a demo app with npm init svelte@next, the methodOverride setting is not included in svelte.config.js. This is despite it being included in the demo app template. This is causing new demo apps to not support editing or removing TODOs.
Run npm init svelte@next and select all the default options
Look at svelte.config.js in the created repo. The methodOverride setting is not included.
Logs
XHRPOSThttp://localhost:3000/todos/df0000a7-e3d0-4e83-b71b-378e92cdc2c2.json?_method=DELETE
[HTTP/1.1 400 Bad Request 3ms]
_method=DELETE is not enabled. See https://kit.svelte.dev/docs#configuration-methodoverride form.js:31:13
XHRPOSThttp://localhost:3000/todos/df0000a7-e3d0-4e83-b71b-378e92cdc2c2.json?_method=PATCH
[HTTP/1.1 400 Bad Request 7ms]
_method=PATCH is not enabled. See https://kit.svelte.dev/docs#configuration-methodoverride form.js:31:13
XHRPOSThttp://localhost:3000/todos/df0000a7-e3d0-4e83-b71b-378e92cdc2c2.json?_method=PATCH
[HTTP/1.1 400 Bad Request 2ms]
_method=PATCH is not enabled. See https://kit.svelte.dev/docs#configuration-methodoverride
I think this is related to the svelte.config.js present in the shared folder, which overwrites the default svelte.config.js. Maybe there's a way to merge these configs like we seem to do with package.json?
The text was updated successfully, but these errors were encountered:
Describe the bug
When scaffolding a demo app with
npm init svelte@next
, themethodOverride
setting is not included insvelte.config.js
. This is despite it being included in the demo app template. This is causing new demo apps to not support editing or removing TODOs.kit/packages/create-svelte/templates/default/svelte.config.js
Lines 17 to 19 in f171434
Reproduction
npm init svelte@next
and select all the default optionssvelte.config.js
in the created repo. ThemethodOverride
setting is not included.Logs
System Info
Severity
annoyance
Additional Information
Reported in comment method override PR: #2989 (comment).
I think this is related to the
svelte.config.js
present in theshared
folder, which overwrites the defaultsvelte.config.js
. Maybe there's a way to merge these configs like we seem to do withpackage.json
?The text was updated successfully, but these errors were encountered: