Error

pinia.js?v=77070775:1355 Uncaught Error: [🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"? See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help. This will fail in production. at useStore (pinia.js?v=77070775:1355:13) at CalculationFunctions.ts:4:42

Solution

Read data from store first and then you can use the data.