Bundlers & Linters
Webpack, Vite, ESLint, TypeScript - build & lint errors.
Fix frontend build and lint errors in CI: Webpack, Vite, Rollup, esbuild, Babel, TypeScript (tsc), ESLint, and Prettier.
Bundlers
Webpack, Vite, Rollup, esbuild, Babel.
"budget exceeded"Fix Angular "Error: bundle initial exceeded maximum budget" during `ng build` in CI - a bundle grew past the
Budget exceededFix "budgets exceeded" in ng build in CI - the initial or anyComponentStyle bundle grew past the configured
"Cannot find module '@babel/...'"Fix Babel "Cannot find module '@babel/preset-env'" / preset-react errors in CI - a preset or plugin
"Transform failed"Fix esbuild "Transform failed with N errors" in CI - a syntax error, JSX in a non-JSX loader, or a wrong
"contains a link ... not found"Fix MkDocs "contains a link to X which is not found in the documentation files" in CI - a relative link
"Failed to fetch `Inter` from Google Fonts"Fix Next.js "Failed to fetch `<Font>` from Google Fonts" during next build in CI - next/font downloads fonts
"Type error" (next build)Fix "next build" failing with "Failed to compile. Type error: ..." in CI - Next type-checks during the build,
build-manifest missingFix "ENOENT .next/build-manifest.json" in CI - the build artifact is missing because the build did not run,
"Could not resolve entry module"Fix Rollup "[!] RollupError: Could not resolve entry module '<input>'" in CI - the configured `input` path
"Unexpected token" (Rollup)Fix Rollup "Unexpected token (Note that you need plugins to import files that are not JavaScript)" in CI -
"Generated an empty chunk"Fix Rollup/Vite `output.manualChunks` problems in CI - "Generated an empty chunk" warnings and broken chunk
"Can't find stylesheet to import"Fix Sass "Error: Can't find stylesheet to import" in CI - a wrong path, a case mismatch, or a missing load
"Can't find stylesheet"Fix Sass "Error: Can't find stylesheet to import" in CI - a wrong @use/@import path, a missing load path, or
"no theme named ... found"Fix Sphinx "Theme error: no theme named X found" in CI - html_theme in conf.py names a theme whose package is
"build-storybook" failedFix "storybook build" / "build-storybook" failures in CI - a broken builder config, a story import error, or
SvelteKit adapter errorFix SvelteKit build failures from a missing or wrong adapter in CI - `vite build` produces no deployable
"failed to parse .swcrc"Fix SWC "failed to parse config file" / `.swcrc` errors in CI - invalid JSON, an unknown option, or a
"Build failed with errors"Fix Vite "[vite]: Build failed with errors" in CI - the wrapper message above a specific transform, resolve,
"Rollup failed to resolve import"Fix "[vite]: Rollup failed to resolve import '<module>'" during vite build in CI - an externalized or missing
"Could not load ... (imported by)"Fix Vite "Could not load <path> (imported by <file>): ENOENT" during vite build in CI - a missing file, a
"Failed to resolve import"Fix Vite "Failed to resolve import '<module>' from '<file>'" in CI - a missing dependency, a wrong path, a
vite build OOMFix "JavaScript heap out of memory" during vite build of a large app in CI - raise Node's heap, trim source
"Pre-transform error"Fix Vite "Pre-transform error" in CI - a plugin or esbuild transform threw while pre-processing a module,
"Rollup failed to resolve import"Fix "[vite]: Rollup failed to resolve import '<module>'" during vite build in CI - a missing dependency or
"Failed to resolve entry for package"Fix Vite "Failed to resolve entry for package" during dependency pre-bundling in CI - a bad package
Vite SSR externalizeFix Vite SSR build failures from incorrectly externalized dependencies in CI - a CommonJS dep that breaks
compiler-sfc errorFix Vue compiler-sfc errors in CI - a malformed Single File Component template/script, or a vue/compiler-sfc
Resolve componentFix "Failed to resolve component" in CI - a component used in a template was never registered, imported, or
"undefined (reading 'tap')"Fix Webpack "Cannot read properties of undefined (reading 'tap')" in CI - a plugin built for a different
"export not found"Fix webpack "ERROR in ... export 'X' (imported as 'X') was not found in '<module>'" in CI - a named import
"heap out of memory"Fix Webpack/Vite "FATAL ERROR: ... JavaScript heap out of memory" during the build in CI - raise Node's heap
"Can't resolve"Fix Webpack "Module not found: Error: Can't resolve '<module>'" in CI - a missing dependency, a wrong import
"Module parse failed"What "Module parse failed: Unexpected token" means in Webpack - no loader handles that file type - and the
"Module parse failed"Fix webpack "Module parse failed: Unexpected token ... You may need an appropriate loader" in CI - JSX/TS or
"UnhandledSchemeError" node: importFix Webpack "Reading from 'node:...' is not handled by plugins (UnhandledSchemeError)" in CI - a dependency
"process is not defined"Fix "Uncaught ReferenceError: process is not defined" after upgrading to webpack 5 - webpack 5 dropped
"ERR_OSSL_EVP_UNSUPPORTED"Fix webpack "error:0308010C:digital envelope routines::unsupported" (ERR_OSSL_EVP_UNSUPPORTED) on Node 17+ in
"Failed to parse source map"Fix Webpack source-map-loader "Failed to parse source map" warnings that fail CI - a dependency ships a
TypeScript
tsc errors and config.
TS1192 no default exportFix "error TS1192: Module 'x' has no default export" when tsc runs in CI - a default import of a module that
TS2339 property does not existFix "error TS2339: Property 'x' does not exist on type 'Y'" when tsc runs in CI - accessing a member the type
TS2349 not callableFix "error TS2349: This expression is not callable" when tsc runs in CI - calling a value whose type has no
TS2515 abstract memberFix "error TS2515: Non-abstract class 'X' does not implement inherited abstract member 'y'" when tsc runs in
TS2792 moduleResolutionFix "error TS2792: Cannot find module 'x'. Did you mean to set the 'moduleResolution' option to 'nodenext',
TS6053 file not foundFix "error TS6053: File 'x' not found" when tsc runs in CI - a files entry or a referenced path that does not
TS18046 "is of type 'unknown'"Fix tsc "error TS18046: 'x' is of type 'unknown'" in CI - under useUnknownInCatchVariables you used a caught
TS2307 "or its corresponding type declarations"Fix tsc "error TS2307: Cannot find module 'X' or its corresponding type declarations" in CI when the runtime
"moduleResolution: bundler"Fix TypeScript errors from `moduleResolution: "bundler"` in CI - TS5095 (requires module esnext/preserve) and
"paths" not resolvingFix TypeScript `paths`/`baseUrl` aliases that resolve in the editor but fail in CI - a missing baseUrl, paths
"TS1484 (verbatimModuleSyntax)"Fix TypeScript "TS1484: 'X' is a type and must be imported using a type-only import when verbatimModuleSyntax
"TS18003: No inputs found"Fix TypeScript "error TS18003: No inputs were found in config file" in CI - include/files/exclude match no
"TS2304: Cannot find name"Fix TypeScript "error TS2304: Cannot find name '<x>'" in CI - a missing import, an undeclared global, or a
"TS2580: Cannot find name"Fix TypeScript "error TS2580: Cannot find name 'process'" (and require/__dirname/Buffer) in CI - install
"TS2688: type definition file"Fix TypeScript "error TS2688: Cannot find type definition file for '<x>'" in CI - a name in
"TS5023: Unknown option"Fix TypeScript "error TS5023: Unknown compiler option '<x>'" in CI - a typo, a removed/renamed option, or an
"TS6059: not under rootDir"Fix TypeScript "error TS6059: '<file>' is not under 'rootDir'" in CI - an import reaching outside rootDir,
"TS6305 / TS6202"Fix TypeScript `tsc --build` project-reference errors in CI - TS6305 "Output file has not been built from
Lint & format
ESLint, Prettier failures in CI.
"prettier: command not found"Fix "prettier: command not found" (exit 127) in CI - Prettier is not installed, dev deps were pruned, or the
"Cannot read config file"Fix ESLint "Cannot read config file: <.eslintrc>" / "Unexpected token in JSON" in CI - a malformed or
"Failed to load config to extend"Fix ESLint "Failed to load config '<x>' to extend from" in CI - a shareable config referenced in extends but
ESLint OOMFix ESLint "JavaScript heap out of memory" on a large repo in CI - raise Node's heap, scope type-aware
ESLint peer conflictFix npm ERESOLVE peer-dependency conflicts around ESLint in CI - a plugin/config that requires a different
"SyntaxError" (Prettier)Fix Prettier "[error] SyntaxError: Unexpected token" in CI - Prettier cannot parse a file because of invalid
vue-tsc errorFix vue-tsc type errors in CI - strict template/script type checking surfaces errors the dev server skips,
Explore other topics
GitHub ActionsWorkflow, runner, and YAML errors - diagnosed and fixed.
Node.js & npmnpm, yarn, and pnpm failures in CI - solved.
DockerBuild, run, compose, and registry errors - explained.
Pythonpip, poetry, venv, and pytest failures - fixed.
Java & JVMMaven, Gradle, and JVM failures in CI - resolved.
GoGo build, module, and test failures - diagnosed.