T
T
tvelforce2018-01-22 17:40:06
JavaScript
tvelforce, 2018-01-22 17:40:06

How to use vue components outside of root folder?

I have several applications on vue:
/site/app.vue
/moderator/app.vue
I decided to create a platform with common components:
/platform/component.vue
However, when connecting a component:
import tooltip from '../../platform /component.vue' I get an
error:

Uncaught Error: Cannot find module "!!babel-loader!../../../site/node_modules/vue-loader/lib/selector?type=script&index=0!./component.vue"

What is the best way to implement a platform for multiple applications other than copying the platform folder to each application? I will be grateful for any help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2019-11-07
@KononovD

'3,5 т'.replace(/[^\d,]/g, '');

K
Klein Maximus, 2018-01-22
@tvelforce

Checkout the package and connect via npm?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question