{"record":{"id":"2bbbc21e8ac5750d","repo":"quasarframework/quasar","slug":"the-file-defined-in-quasar-config-bex-extrascr","errorCode":null,"errorMessage":"The file defined in quasar.config > bex > extraScripts > \"${rawName}\" does NOT exist. Skipping.","messagePattern":"The file defined in quasar\\.config > bex > extraScripts > \"(.+?)\" does NOT exist\\. Skipping\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"app-vite/lib/modes/bex/bex-utils.js","lineNumber":181,"sourceCode":"        )\n        warn()\n        return\n      }\n\n      const entry = getCompilationEntry(quasarConf, inputFile, scriptName)\n      if (!scriptNameSet.has(entry.name)) {\n        scriptNameSet.add(entry.name)\n        scriptList.push(entry)\n      }\n    })\n  })\n\n  quasarConf.bex.extraScripts.forEach(rawName => {\n    const inputFile = quasarConf.ctx.appPaths.resolve.bex(rawName)\n\n    if (!fse.existsSync(inputFile)) {\n      warn()\n      warn(\n        `The file defined in quasar.config > bex > extraScripts > \"${rawName}\" does NOT exist. Skipping.`\n      )\n      warn()\n      return\n    }\n\n    const scriptName = rawName.replace(scriptExtRE, '')\n    const entry = getCompilationEntry(quasarConf, inputFile, scriptName)\n    if (!scriptNameSet.has(entry.name)) {\n      scriptNameSet.add(entry.name)\n      scriptList.push(entry)\n    }\n  })\n\n  return scriptList\n}\n\nexport function copyBexAssets(quasarConf, clean = false) {","sourceCodeStart":163,"sourceCodeEnd":199,"githubUrl":"https://github.com/quasarframework/quasar/blob/4841521b5f635a971eb9e2710e5542efd194691b/app-vite/lib/modes/bex/bex-utils.js#L163-L199","documentation":"extractBexScripts also processes quasar.config > bex > extraScripts. Each raw name is resolved against the src-bex directory; when the file does not exist the warning is emitted and the script is skipped instead of being compiled into the BEX.","triggerScenarios":"quasar.config > bex > extraScripts array contains an entry whose file cannot be found via appPaths.resolve.bex(rawName) (i.e. not inside src-bex).","commonSituations":"Config written expecting paths relative to project root instead of src-bex; script file deleted or renamed; typos in the config entry; forgetting that extraScripts must live within src-bex.","solutions":["Move the script file into src-bex (extraScripts paths resolve relative to src-bex).","Fix the path/name in quasar.config > bex > extraScripts.","Remove the stale entry if the script is no longer needed.","Restart the dev server / rebuild after changing quasar.config so it is reloaded."],"exampleFix":"// before (quasar.config.js)\nbex: { extraScripts: ['extras/my-script.js'] } // file is at ./extras/my-script.js\n// after\nbex: { extraScripts: ['my-script.js'] } // moved to src-bex/my-script.js","handlingStrategy":"validation","validationCode":"const fs = require('fs'), path = require('path')\nfor (const s of require('./quasar.config.js').bex?.extraScripts || []) {\n  if (!fs.existsSync(path.join('src-bex', s))) throw new Error(`extraScripts entry missing (paths are relative to src-bex): ${s}`)\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Remember extraScripts resolve relative to src-bex, not the project root.","Keep extraScripts entries minimal and documented in quasar.config comments.","Restart dev/build after editing quasar.config so changes take effect."],"tags":["bex","configuration","missing-file","extra-scripts"],"backgroundTag":"referenced-file-not-found","analyzedSha":"4841521b5f635a971eb9e2710e5542efd194691b","analyzedAt":"2026-08-30T01:13:14.944Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}