Skip to content

TypeError: h is not a function #4

@hugovicfortman

Description

@hugovicfortman

This issue is also experienced in other vue libraries when upgrading to vue 3.
Since the h renderer function is no longer auto injected, it is not recognised as a function when invoked.

 render (h) {
      const data = {
        staticClass: 'icon md-icon md-{{icon}}',
        'class': this.className,
        attrs: {
          width: this.width,
          height: this.height,
          viewBox: this.viewBox,
          xmlns: 'http://www.w3.org/2000/svg'
        }
      };

      return h('svg', data, [
        h('path', {
          attrs: {
            d: '{{path}}'
         
          style: {
            fill: this.color
          }
        })
      ])

See the following mentioned issue for in the vue cli plugin.

vuejs/vue-cli-plugin-vue-next#1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions