Webcomponents not recognized
Hi!
I'm working on an Angular project that uses a custom component library that's installed through NPM. The components from that NPM package are build with Stencil (a webcomponent library). Build on top of those the other team build a Angular wrapper on top of these Stencil webcomponents. This is a private package, so I can't provide any more details surrounding that package.
In Visual Studio Code it does recognize these components but in Webstorm I don't get any Intellisense. I get a warning that it's a unkown HTML tag.
All the components work and are loaded in the project. I would love to have Intellisense for these components since I'll need them all the time. Is there something I have to configure? I have found an article in the documentation of Jetbrains that explains on how to add one yourself under Editor > Inspections and then HTML > Unknown tag but since there are a lot of components (and it still doesn't know the attributes etc. from that component), this is not a viable solution for me.
Please sign in to leave a comment.
StencilJS; please vote for https://youtrack.jetbrains.com/issue/WEB-44918/Stencil-Support to get notified on any progress with this feature
Custom Web Components are not supported as well (https://youtrack.jetbrains.com/issue/WEB-49361/Support-Custom-Web-Components)
Here's a JetBrains plugin I just released to provide better custom element integration
https://wc-toolkit.com/integrations/jetbrains/
Hi Burton,
The plugin looks really nice. However, I can’t get it working on WebStorm.
I’ve followed all the setup steps:
created the custom-elements.json file
added a wc.config.js file
confirmed that Node.js is available in the PATH
When WebStorm tries to start the language server, I get the following error in the IDE log:
com.intellij.execution.process.ProcessNotCreatedException:Cannot run program"C:\Users\****\AppData\Roaming\JetBrains\WebStorm2025.3\plugins\wc-language-server-jetbrains\language-server\bin\wc-language-server"(in directory "C:\Users\****\WebstormProjects\testing-wc"):CreateProcess error=193, %1 is not a valid Win32 applicationThis makes me wonder whether the plugin (or the bundled language server) is currently compatible with Windows, or if I’m missing an additional setup step.
Any help would be appreciated. Thanks!