Skip to content

builder.element(tagName) throws an error in 6.x #734

Description

@runspired

Error:

TypeError: Cannot destructure property 'attrs' of 'options' as it is undefined.
    at Object.buildElement [as element] (/Users/runspired/github/private/fnb/frontend/node_modules/@glimmer/syntax/dist/commonjs/es2017/lib/v1/public-builders.js:158:5)

Example Working in 5.x

Transform:

module.exports = function(env) {
  const b = env.syntax.builders;
  
  return {
    ElementNode(node) {
      return b.element("span");
    }
  }
}

Code to modify:

<Input />

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions