E
E
Eugene2020-07-16 22:25:13
webpack
Eugene, 2020-07-16 22:25:13

Laravel. Bug with connecting vue components asynchronously with several app.js - empty style files. Where to dig?

Good day.

Help, please, to deal with an unexpected phenomenon for me, I don’t know what this behavior is connected with and in which direction to dig.

I'm working on a project with Laravel + Vue. The project has a public part and a user account.
The public part has its own app.js and the user account also has its own app.js.

If you connect vue components asynchronously, then the assembly is not performed correctly - the style files are empty.

const appData = () => import(/* webpackChunkName: "js/account/app-data" */ './components/app-data');


Naturally two app.js are not connected on the same page.

For clarity, I recorded a video:
https://yadi.sk/i/yErj64whNaPNdg

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