Closed glyl closed 3 years ago
I figured it out!
In Component B, module.exports = { ... }
needs to be changed to export default { ... }
.
When importing Component B into Component A, use import ComponentB from '{path_to_component}'
.
The same goes for importing Component A into Component B.
Hello,
Does anyone know how to import a Vue component that uses
@Component
into another component that uses the vanillamodule.exports
?Any hints on how to import the other way -- vanilla components into one using
@Component
-- would be also appreciated.I.e. with the two example components below, I'd like to know:
Component A:using vue-class-component
Component B: not using vue-class-component