Open dennissterzenbach opened 4 years ago
I have the same problem.
An inelegant solution:
Vue.use(VueLogger as any, options);
I have just done a pull request that I believe fixes this issue.
We have the same problem here at Kuzzle and are currently using the same solution as thomergil. Please, merge the PR from @ageddesi 🙏
We have the same problem here at Kuzzle and are currently using the same solution as thomergil. Please, merge the PR from @ageddesi
Let me have a look!
@ageddesi @xbill82 I merged the PR and released the package as 1.5.5 on NPM.
Can you confirm your issue is solved? Because in my sample TS project it unfortunately isn't.
I'm using
"dependencies": { "vue": "^2.6.11", "vue-class-component": "^7.2.3", "vue-property-decorator": "^8.4.2", "vuejs-logger": "1.5.5" }, "devDependencies": { "@vue/cli-plugin-typescript": "~4.5.0", "@vue/cli-service": "~4.5.0", "typescript": "~3.9.3", "vue-template-compiler": "^2.6.11"
Please let me know ;).
I personally still have the error with 1.5.5
I also have the same issue on 1.5.4 & 1.5.5.
I setup a new vue project using the cli, including TypeScript support and wanted to add vuejs-logger. I'm already using the latest version, which includes the type def (.d.ts) file. That file is recognised by VSCode, too.
However I can't get the project to compile.
this is the main.ts:
Complete error output:
Any suggestions?