0

I have an application built with Laravel 8 and Vue 3 (in the same project) which is running with laravel mix. I am running the app with docker with different containers.

Laravel part is running, but the issue is with frontend part. I run "npm run dev" on node container to start the laravel mix that build the application. For some reasons, the process is stopped at 15% (not on the same file) without any error. I don't know why.

It seems to be a timeout value on running commands or maybe a bad config.

This is my webpack.mix.js:

const mix = require("laravel-mix");
const path = require("path");

mix.ts("resources/ts/app.ts", "public/js")
    .vue({ version: 3 })
    .webpackConfig({
        module: {
            rules: [
                {
                    test: /.mjs$/i,
                    resolve: {
                        byDependency: { esm: { fullySpecified: false } },
                    },
                },
            ],
        },
        resolve: {
            alias: {
                "@": path.resolve(__dirname, "resources/ts/src/"),
            },
        },
    });

Thanks!

4
  • Show us the standard output of your terminal depicting the process stoppage at 15%. Mar 17, 2022 at 0:56
  • What does "not on the same file" mean? Mar 17, 2022 at 0:57
  • snipboard.io/DFClp0.jpg
    – Adrian
    Mar 17, 2022 at 11:25
  • I mean that the file where the process is stopped is not the same (so in this case is not an issue on a file)
    – Adrian
    Mar 17, 2022 at 11:26

1 Answer 1

0

I've fixed the issue. It was a memory issue. So, I increased memory on my server and build is complete now.

4
  • try building it locally, why not? Jul 11, 2022 at 4:43
  • Could you please share how you fixed this? I'm running into the exact same problem with the exact same code and I have no clue on what to do
    – pu4cu
    Jul 12, 2022 at 16:30
  • Increase the memory if you are using docker.
    – Adrian
    Jul 12, 2022 at 17:08
  • @Adrian Is that all you did? I'm using Laravel Sail on WSL2 for Windows, and I tried increasing the memory, but it still did not work
    – pu4cu
    Jul 13, 2022 at 7:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.