G
G
GizzaProger2021-08-30 11:17:00
React
GizzaProger, 2021-08-30 11:17:00

How to properly use "modules" created by reactive frameworks?

Situation:
We are writing an application in vue. One of our developers made a chat component. I would like to make a library out of this component in order to connect a chat similar to npm modules. That is, to prescribe something like this
import Chat from "/libs/chat"
I found the build target article - I assembled the library, but I don't know exactly how to connect it. It comes to mind to import umd, but when I connect I get an error
Object(...) is not a function
Is it an assembly, import, or component problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question