Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functional component in dev mode dont work #1023

Closed
danyadev opened this issue Apr 22, 2020 · 1 comment
Closed

Functional component in dev mode dont work #1023

danyadev opened this issue Apr 22, 2020 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@danyadev
Copy link

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

@yyx990803 yyx990803 added the 🐞 bug Something isn't working label Apr 22, 2020
@yyx990803
Copy link
Member

Fixed, but it's still better to name the functional component.

pikax pushed a commit to pikax/vue-next that referenced this issue Apr 29, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants