P
P
PanDar2021-04-25 17:31:41
webpack
PanDar, 2021-04-25 17:31:41

How to build VUE in WP and YII?

Hello, I got a wp, vue, yii project at work. Where is WP admin, YII back api, VUE front.

The structure, VUE is located in cabinet_assets
60857cd45beac218110229.png

In the package.json file in scripts
60857cf45de6a045415218.png
, and with any script, an error occurs, when starting: cabinet is executed, everything collapses and you have to make a backup.

When I enter the build:cabinet command, I get this
60857ca5b2882404127388.png, like this command should build the project

. I need to build a build in order to change the code, because
60857cc0644a2870510193.png
I changed but nothing showed up. It is also necessary that the assembly does not fall, tk. I'm not really into VUE at all. I ask to help knowledgeable people, I will answer any questions. npm install did <th>ФИО . </th>



Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
PanDar, 2021-05-14
@PanDar

Solved the problem like this. Installed all dependencies and read errors

A
Alexander, 2021-04-26
@Aleksandr-JS-Developer

You have a very strange structure.
Try installing the Vue project via cli into an empty folder and compare the structure with yours.
It should work at the structure stage, but just in case,
just try to just insert this command into the scripts and run it . If it starts, you can slowly add flags and see which assembly will fall off and look there already. If it does not start, try deleting the folder and doing it again. "testServe": "vue-cli-service serve"npm run testServe
node_modulesnpm install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question