Utilizing a computed property to retrieve an id parameter from the route URL like this:
export default defineComponent({
computed: {
extractionId() : string {
return this.$route.params.id as string;
},
releves() {
let extractionId = this.extractionId;
return this.$store.getters.getExtractionById(extractionId)
}
},
// ....
Encountering an error in releves
when trying to access this.extractionId
, showing the following error message:
Property 'extractionId' doesn't exist on type 'CreateComponentPublicInstance<{ [x: `on${string}`]: ((...args: any[]) => any) | undefined; } | { [x: `on${string}`]: ((...args: never) => any) | undefined; }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 10 more ..., {}>'.
Is it not possible to rely on another computed property?