-
Notifications
You must be signed in to change notification settings - Fork 25
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
Use web-types.json localy #3
Comments
@VitProg As I wrote in the issue #1 I haven't expected web-types to be used for local project development, so there is no support for it. Your timing with this report is perfect as I am working on improvements for 2019.2.1 for web-types and I will include your use case as well. As far as I understood, you are adding |
YouTrack issue: https://youtrack.jetbrains.com/issue/WEB-40349 |
@piotrtomiak, thank you for your quick response.
Yes. I did a little test - https://github.com/VitProg/web-types--issue-3 The root of the project is the In package.json the line "web-types" is extracted: "./web-types.json"` In the Home component ( |
@VitProg I've added support for your use case to 2019.2.1. You will be able to check it out in this weeks EAPs release. |
@piotrtomiak Is Rider supported by web-types? This isn't Vue components only, right? |
@SavoInfostream I am not sure I understand your question correct. Web-types in current form support only Vue.js components and work when Vue.js plugin is installed. You can install it into Rider of course. We are planning to extend web-types to support generic use cases and other frameworks. |
@piotrtomiak Naming is a bit confusing, but I was hoping that vanilla Web Components would be supported. This repository was linked in several discussions about how to add support for these web components in IDEs. |
@SavoInfostream One of our main goals is to support Web Components within up to 2-3 months, we were developing web-types with such support in mind. It's just that we had to focus on a single framework first. I am sorry for the confusion. |
Hi any update on Web components? |
@aiphee Web Components are supported since 2022.1 - it took much more than expected to create a generic format. |
Hi @piotrtomiak, I am having a similar issue in PyCharm 2022.2.3. I am using As I stumbled upon this issue, I cloned the https://github.com/VitProg/web-types--issue-3 repo and found out the IDE did not manage to find the |
Found a workaround by utilizing the type definitions, based on unplugin/unplugin-vue-components#477 (comment) by adding the following in
It seems like it is a
With the additional configuration in
|
@kiawin Sorry for late reply! It would be great if you can share example project, so that I can check/debug what's wrong. |
WebStorm 2019.2 and PhpStorm 2019.2
Ubuntu 18.04
We are trying to add support for web types to our project as a local file.
About our project:
Typscript, use VueJs for UI.
We have a very unusual use of Vue.
All components wrote on classes with many syntactic sugar.
A component consists of several files: component class, template, styles, and unit test.
Of course, IDE does not understand our component syntax. There are no normal autocomplete in the our template files.
With the introduction of 2019.2 we got the idea to use web types locally. We want to generate a web type file on all our components on the fly. There we want to greatly improve the usability of the development, since there will be a full autocomplete for all components and their properties.
But something went wrong, and the web-types don't work. It feels like the IDE doesn't see them.
Our steps for the test:
web-types.json
with a description of one of our components -control-progress-line
"web-types": "./web-types.json"
This does not work. What are we doing wrong?
File
web-types.json
:Part of file
package.json
:Component template file example:
The text was updated successfully, but these errors were encountered: