Skip to content
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

Vue.vscode-typescript-vue-plugin not working in a Cypress component test #2137

Closed
segevfiner opened this issue Nov 21, 2022 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@segevfiner
Copy link
Contributor

I can't seem to get Vue.vscode-typescript-vue-plugin to recognize a vue SFC import in a Cypress component test in this repo https://github.com/segevfiner/vue-component-test, see cypress/component/HelloWorld.cy.ts, it doesn't seem to recognize the .vue import in that file. I'm not sure if I configured something incorrectly for it to do so.

[{
	"resource": "/Users/segevfiner/junk/vue-component-test/cypress/component/HelloWorld.cy.ts",
	"owner": "typescript",
	"code": "2307",
	"severity": 8,
	"message": "Cannot find module '../../src/components/HelloWorld.vue' or its corresponding type declarations.",
	"source": "ts",
	"startLineNumber": 1,
	"startColumn": 24,
	"endLineNumber": 1,
	"endColumn": 61
}]
@johnsoncodehk
Copy link
Member

This is a bug of TS plugin and not easy to fix, as a workaround you can consider to use takeover mode for now.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Nov 29, 2022
@segevfiner
Copy link
Contributor Author

Figured as much. But it does feel like something worth fixing at some point.

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Dec 25, 2022

Seems to have been fixed by 062895a (Released with 1.0.16)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants