Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
[vite] Internal server error: Failed to resolve import. Does the file exist?
#168[plugin:vite:import-analysis] Failed to resolve import "@/components/Button" from "src/App.tsx". Does the file exist?
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
#140Error [ERR_REQUIRE_ESM]: require() of ES Module .../node_modules/some-pkg/index.js from .../app.js not supported. Instead change the require of index.js to a dynamic import()
FATAL ERROR: Reached heap limit / JavaScript heap out of memory during build
#138FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory (during next build, vite build, tsc, webpack or jest)
TS17004: Cannot use JSX unless the '--jsx' flag is provided
#93error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
TS6133: 'x' is declared but its value is never read (build fails on an unused import)
#92error TS6133: 'b' is declared but its value is never read.
TS1484: 'User' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled
#91error TS1484: 'User' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
TS2307: Cannot find module './logo.svg' or its corresponding type declarations
#90error TS2307: Cannot find module './logo.svg' or its corresponding type declarations.
TS7006: Parameter 'x' implicitly has an 'any' type
#89error TS7006: Parameter 'name' implicitly has an 'any' type.
TS18048: 'user' is possibly 'undefined' (after .find or an optional value)
#88error TS18048: 'user' is possibly 'undefined'.
TS2339: Property 'name' does not exist on type '{}'
#87error TS2339: Property 'name' does not exist on type '{}'.
TS1343: The 'import.meta' meta-property is only allowed when module is es2020 or later
#67error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'.
TS2550: Property 'replaceAll' does not exist on type 'string' (lib too old)
#66error TS2550: Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
TS5110: Option 'module' must be set to 'NodeNext' when 'moduleResolution' is 'NodeNext'
#65error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
bash: tsc: command not found (tool is installed in node_modules, not globally)
#64build.sh: line 1: tsc: command not found
TS2307: Cannot find module '@/...' path alias
#45error TS2307: Cannot find module '@/utils' or its corresponding type declarations.
TS2584: Cannot find name 'document' (lib option is missing dom)
#44error TS2584: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
TS18003: No inputs were found in config file
#43error TS18003: No inputs were found in config file '/app/tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'.
TS2835: Relative import paths need explicit file extensions (moduleResolution node16/nodenext)
#42error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './math.js'?
TS1259: Module can only be default-imported using the 'esModuleInterop' flag
#41error TS1259: Module '"/app/node_modules/@types/express/index"' can only be default-imported using the 'esModuleInterop' flag
TS2580: Cannot find name 'process' (or 'require', 'Buffer', '__dirname')
#40error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
TS7016: Could not find a declaration file for module 'express'
#39error TS7016: Could not find a declaration file for module 'express'. '/app/node_modules/express/index.js' implicitly has an 'any' type.