The external js file in webpack depends on another js file (bootstrap-editable needs to reference moment)

using vue with webpack components to develop a single-page application, now encountered the following problems:
uses a third-party js library bootstrap-editable to achieve inline editing, in which for date, this library uses moment.js
I have installed the momentjs package, and there is no problem in creating a moment object in a component (eg:content.vue).
and when calling the following method in this component (content.vue)
clipboard.png

clipboard.png

clipboard.png

sourcemap:moment.js
clipboard.png

:

clipboard.png
ask colleagues to take a look at how to solve it. Thank you very much

Mar.16,2021
Have you import moment in

content.vue


encountered the same problem? has the problem been solved? It means that you have a big head for this problem

.
Menu