Open sluedecke opened 4 years ago
The error is related to the src/boot/pouch-vue.ts
. If I delete it, no error occurs.
Still no 'real' luck with latest @quasar/app
and similar, but I have an usable workaround for the compilation error seen above and the other one not mentioned:
Property 'options' is optional in type 'QDate' but required in type 'Vue'.
)Make options optional to Vue again in node_modules/pouch-vue/types/index.d.ts
--- index.d.ts.orig 2020-07-02 23:49:09.884805133 +0200
+++ index.d.ts 2020-07-02 23:41:41.002743274 +0200
@@ -57,7 +57,7 @@
$pouch: PouchAPI;
$databases: PouchDatabases;
_liveFeeds: Record<string, PouchDB.LiveFind.LiveFeed>;
- options: any;
+ options?: any;
}
}
declare module 'vue/types/options' {
(this as any).pouchAccessor
e.g.
...
pouch: {
config() {
return {
database: 'todo',
selector: { $collectionType: 'ConfigurationCollection' },
first: true
};
},
},
...
methods: {
someRoutine(): any {
console.log('Configuration is', (this as any).config);
}
}
...
HTH
I am encountering strange lint errors when I try to use pouch-vue with the quasar framework. All works fine when I use the development mode of Quasar, even 'yarn lint' runs without error. But when I run
quasar build
errors as seen below happen.This occurs after a clean setup of a fresh quasar project and simply adding pouch-vue and some dependencies. Maybe there is something wrong with my approach? Please check the sample repository https://github.com/sluedecke/sl-quasar-lint which exhibits the same error.