'Getting "throw new Error('Callback was already called.')"

I've been getting this bizarre error out of the blue when I run npm run build (built the program many times before).

C:\Users\PomoJota\node_modules\neo-async\async.js:16
    throw new Error('Callback was already called.');
    ^

Error: Callback was already called.
    at throwError (C:\Users\PomoJota\node_modules\neo-async\async.js:16:11)
    at C:\Users\PomoJota\node_modules\neo-async\async.js:2818:7
    at processTicksAndRejections (node:internal/process/task_queues:75:11)
npm ERR! code 1
npm ERR! path C:\Users\pomojota
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c vue-cli-service build

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Jean\AppData\Local\npm-cache\_logs\2021-07-27T03_46_08_599Z-debug.log

The debug log:

0 verbose cli [
0 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli   'run',
0 verbose cli   'build'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 4ms
4 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 3ms
5 timing config:load:builtin Completed in 3ms
6 timing config:load:cli Completed in 2ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:C:\Users\pomojota\.npmrc Completed in 8ms
9 timing config:load:project Completed in 10ms
10 timing config:load:file:C:\Users\Jean\.npmrc Completed in 4ms
11 timing config:load:user Completed in 4ms
12 timing config:load:file:C:\Users\Jean\AppData\Roaming\npm\etc\npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 29ms
19 verbose npm-session b0696214e645b814
20 timing npm:load Completed in 53ms
21 timing command:run-script Completed in 8397ms
22 verbose stack Error: command failed
22 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
22 verbose stack     at ChildProcess.emit (node:events:376:20)
22 verbose stack     at maybeClose (node:internal/child_process:1063:16)
22 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
23 verbose pkgid [email protected]
24 verbose cwd C:\Users\pomojota
25 verbose Windows_NT 10.0.19042
26 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
27 verbose node v15.5.1
28 verbose npm  v7.3.0
29 error code 1
30 error path C:\Users\pomojota
31 error command failed
32 error command C:\Windows\system32\cmd.exe /d /s /c vue-cli-service build
33 verbose exit 1

My package.json:

{
  "name": "pomojota",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "deploy": "sh deploy.sh"
  },
  "dependencies": {
    "core-js": "^3.6.5",
    "vue": "^3.0.0"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^7.0.0"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/vue3-essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "babel-eslint"
    },
    "rules": {}
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not dead"
  ]
}

I am utterly lost, don't even know where to start on this. For reference I followed this guide to deploy a vue.js app to github pages: https://www.youtube.com/watch?v=i_XbW-FsLKk and it has been working fine up until today when I got this error out of the blue.



Solution 1:[1]

Well, turns out I found this post https://forum.vuejs.org/t/vue-cli-service-build/83951 and simply added module.exports = { css: { extract: false } } to vue.config.js.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jean Rufino