-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling instance method from getter in VueSingleFileComponent causes error: Cannot find module #47
Comments
Could you provide a repository that can reproduce the problem? ERROR in src/App.vue:9:10
TS2614: Module '"../node_modules/vue-class-component/lib"' has no exported member 'Vue'. Did you mean to use 'import Vue from "../node_modules/vue-class-component/lib"' instead?
7 |
8 | <script lang="ts">
> 9 | import { Vue } from 'vue-class-component'
| ^^^
10 | export default class App extends Vue {
11 | message = 'hello World'
12 | |
https://github.com/Buntelrus/ts-transformer-keys_issues_47 here you go. The relevant code is in src/App.vue |
@Buntelrus Thanks for reporting. Fixed in v0.4.3. |
thank you |
When I tried A similar problem was found before. But this time |
I've a vue 3 project with typescript and I'm trying to get ts-transformer-keys work.
My configuration:
tsconfig.json:
vue.config.js
I could locate the issue in the following problem:
If I call an instance method from a getter I got an error
Without
ts-transformer-keys
this works fine.For Example:
App.vue:
The text was updated successfully, but these errors were encountered: