diff --git a/packages/runtime-core/src/apiApp.ts b/packages/runtime-core/src/apiApp.ts index 71b75821..53614ca2 100644 --- a/packages/runtime-core/src/apiApp.ts +++ b/packages/runtime-core/src/apiApp.ts @@ -166,7 +166,7 @@ export function createAppAPI( rootProps?: Data | null ): any { if (!isMounted) { - if (!isObject(rootProps)) { + if (rootProps != null && !isObject(rootProps)) { __DEV__ && warn(`root props passed to app.mount() must be an object.`) rootProps = null