diff --git a/packages/pinia/src/createPinia.ts b/packages/pinia/src/createPinia.ts index eb7dc72394..7749247a3d 100644 --- a/packages/pinia/src/createPinia.ts +++ b/packages/pinia/src/createPinia.ts @@ -57,7 +57,7 @@ export function createPinia(): Pinia { // pinia devtools rely on dev only features so they cannot be forced unless // the dev build of Vue is used. Avoid old browsers like IE11. - if (__USE_DEVTOOLS__ && typeof Proxy !== 'undefined') { + if (__USE_DEVTOOLS__ && IS_CLIENT && typeof Proxy !== 'undefined') { pinia.use(devtoolsPlugin) }