Skip to content

Functional component in dev mode dont work #1023

@danyadev

Description

@danyadev

Version

3.0.0-beta.3

Reproduction link

https://github.com/vuejs/vue-next/blob/dece6102aa84c115a3d6481c6e0f27e5b4be3ef1/packages/runtime-core/src/helpers/resolveAssets.ts#L81

Steps to reproduce

Create a .vue component:

export default function(props) {}

What is expected?

component works

What is actually happening?

error in console:
TypeError: Cannot assign to read only property 'name' of function (function code)
at resolveAsset (link to a line of code in reproduction link)


In vue 3.0.0-beta.2 everything works

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions