diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 4e3079e4..8c0db041 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -225,7 +225,10 @@ export function createAppAPI( return vnode.component!.proxy } else if (__DEV__) { warn( - `App has already been mounted. Create a new app instance instead.` + `App has already been mounted.\n` + + `If you want to remount the same app, move your app creation logic ` + + `into a factory function and create fresh app instances for each ` + + `mount - e.g. \`const createMyApp = () => createApp(App)\`` ) } },