Skip to content

jsx写的组件报错ReferenceError: h is not defined #3035

@alz8888

Description

@alz8888
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.5

Environment

vuecli及插件都是最新版本

Reproduction link

Steps to reproduce

通过jsx写组件,render方法若不加h参数,就会报错,但我方法体内根本不用h。前几天是正常的,最近不知道什么原因就开始报错。我去看了官方的pro体验版,也没有写h,但不报错。求助!

What is expected?

render方法不要强制h参数

What is actually happening?

render方法不写h参数报错,写了h参数后,部分同事编译又报错。


Any additional comments? (optional)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions