Skip to content

Pinia module causing [500] internal server error after upgrading to Nuxt version to 3.15.x #2901

Closed Answered by posva
s-blanar asked this question in Help and Questions
Discussion options

You must be logged in to vote

You are using a regular script instead of a setup one:

<script lang="ts" setup>
const store = useCounterStore();
</script>

The issue you are falling is in the link mentioned in the warning, https://pinia.vuejs.org/core-concepts/outside-component-usage.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2900 on January 29, 2025 08:45.