[Vuejs]-How to correctly style functional components in Vue?

1đź‘Ť

âś…

It’s a bug on vue-devtools.

The only way (for the current version – 5.1.1) to not have the error is to make the component not functional.

An issue was created: https://github.com/vuejs/vue-devtools/issues/1067

👤acdcjunior

0đź‘Ť

The problem is not with scoped styles I suspect. Your “export default” components don’t define there own name. You name them in the importing file. Try removing the name element of your component. (I too am having trouble reproducing. I don’t see the error in the console when I switch to that frame in codesandbox.)

👤bbsimonbb

Leave a comment