Skip to content

Commit

Permalink
fix(nuxt): check @pinia/nuxt module installation by pinia key (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldsht authored Dec 16, 2024
1 parent 93c9a5b commit 0b201b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineNuxtModule<ModuleOptions>({
const resolver = createResolver(import.meta.url)
const logger = useLogger()

if (!hasNuxtModule('@pinia/nuxt', nuxt)) {
if (!hasNuxtModule('pinia', nuxt)) {
logger.warn('The `@pinia/nuxt` module was not found, `pinia-plugin-persistedstate/nuxt` will not work.')
return
}
Expand Down

0 comments on commit 0b201b2

Please sign in to comment.