webcomponents / custom-elements-manifest

A file format for describing custom elements
BSD 3-Clause "New" or "Revised" License
370 stars 27 forks source link

desc.startsWith is not a function #99

Closed Poliziano closed 2 years ago

Poliziano commented 2 years ago

I have the following exception:

[CORE - CLASSES]: Looks like you've hit an error in the core library. Please try to create a minimal reproduction at https://custom-elements-manifest.netlify.com and create an issue at: https://github.com/open-wc/custom-elements-manifest/issues

TypeError: desc.startsWith is not a function

The source of the problem appears to be the JSDocs above a method:

/**
* Validate the current input. Input is valid if it is not required OR has a length greater than 0.
* @param value The current input.
* @param internals Internals attached to this component. See {@link AutomateFormInput} for more information.
* @returns True if valid, false otherwise.
*/
validateInput() { ... }

If I remove the {@link AutomateFormInput} then the problem goes away.

thepassle commented 2 years ago

This repo is only related to the standardization of the schema. The error you're getting is from a tool that generates a CEM and should be posted here: https://github.com/open-wc/custom-elements-manifest/issues

Additionally, id be happy to take a PR on that repo 🙂

Poliziano commented 2 years ago

My mistake - the repositories share the same name 😄