Skip to content

Native Components will throw an warning and probably not work #158

Closed
@lfmunoz

Description

@lfmunoz

Trying to use : https://www.webcomponents.org/element/@alenaksu/json-viewer

but getting the following warning:

[vue warn]: Failed to resolve component: json-viewer
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. 
  at <Anonymous> 
  at <AsyncComponentWrapper> 
  at <Anonymous> 
  at <AsyncComponentWrapper> 
  at <App>

There is no way to pass the compiler option?

https://vuejs.org/api/application.html#app-config-compileroptions

app.config.compilerOptions.isCustomElement = (tag) => {
    if(tag == 'json-viewer') return true
    return false
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    WIPWork In ProgressenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions