diff --git a/packages/create-app/template-svelte-ts/src/main.ts b/packages/create-app/template-svelte-ts/src/main.ts index 0dfb1eefa5c33b..d8200ac4fe3078 100644 --- a/packages/create-app/template-svelte-ts/src/main.ts +++ b/packages/create-app/template-svelte-ts/src/main.ts @@ -1,7 +1,7 @@ import App from './App.svelte' const app = new App({ - target: document.body + target: document.getElementById('app') }) export default app diff --git a/packages/create-app/template-svelte/src/main.js b/packages/create-app/template-svelte/src/main.js index 0dfb1eefa5c33b..d8200ac4fe3078 100644 --- a/packages/create-app/template-svelte/src/main.js +++ b/packages/create-app/template-svelte/src/main.js @@ -1,7 +1,7 @@ import App from './App.svelte' const app = new App({ - target: document.body + target: document.getElementById('app') }) export default app