1 year ago

How to import multiple components from the same path(on one line)? Vue v.2.5.9

Posted 1 year ago by Scoop7

import {FirstGraph, SecondGraph} from './components/Graph.vue';

Doesn't seem to work . Is this even valid vue syntax(v.2.5.9) ? Because I get an error when I try it this way: unknown custom element: <first-graph> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

When importing in on multiple lines one by one everything works, but this seems really redundant for me.

Please sign in or create an account to participate in this conversation.