Yarrow

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?

vitereacttypescriptNo reports yet

Error [ERR_REQUIRE_ESM]: require() of ES Module not supported

#140

Error [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

#138

FATAL 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

#93

error TS17004: Cannot use JSX unless the '--jsx' flag is provided.

typescriptreactVerifiedNo reports yet

TS6133: 'x' is declared but its value is never read (build fails on an unused import)

#92

error TS6133: 'b' is declared but its value is never read.

typescriptviteVerifiedNo reports yet

TS1484: 'User' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled

#91

error TS1484: 'User' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

typescriptviteVerifiedNo reports yet

TS2307: Cannot find module './logo.svg' or its corresponding type declarations

#90

error TS2307: Cannot find module './logo.svg' or its corresponding type declarations.

typescriptviteVerifiedNo reports yet

TS7006: Parameter 'x' implicitly has an 'any' type

#89

error TS7006: Parameter 'name' implicitly has an 'any' type.

typescriptVerifiedNo reports yet

TS18048: 'user' is possibly 'undefined' (after .find or an optional value)

#88

error TS18048: 'user' is possibly 'undefined'.

typescriptVerifiedNo reports yet

TS2339: Property 'name' does not exist on type '{}'

#87

error TS2339: Property 'name' does not exist on type '{}'.

typescriptVerifiedNo reports yet

TS1343: The 'import.meta' meta-property is only allowed when module is es2020 or later

#67

error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'.

typescriptnodeVerifiedNo reports yet

TS2550: Property 'replaceAll' does not exist on type 'string' (lib too old)

#66

error 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.

typescriptVerifiedNo reports yet

TS5110: Option 'module' must be set to 'NodeNext' when 'moduleResolution' is 'NodeNext'

#65

error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.

typescriptVerifiedNo reports yet

bash: tsc: command not found (tool is installed in node_modules, not globally)

#64

build.sh: line 1: tsc: command not found

nodenpmtypescriptVerifiedNo reports yet

TS2307: Cannot find module '@/...' path alias

#45

error TS2307: Cannot find module '@/utils' or its corresponding type declarations.

typescriptnextjsVerifiedNo reports yet

TS2584: Cannot find name 'document' (lib option is missing dom)

#44

error TS2584: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.

typescriptVerifiedNo reports yet

TS18003: No inputs were found in config file

#43

error TS18003: No inputs were found in config file '/app/tsconfig.json'. Specified 'include' paths were '["src"]' and 'exclude' paths were '[]'.

typescriptVerifiedNo reports yet

TS2835: Relative import paths need explicit file extensions (moduleResolution node16/nodenext)

#42

error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './math.js'?

typescriptnodeVerifiedNo reports yet

TS1259: Module can only be default-imported using the 'esModuleInterop' flag

#41

error TS1259: Module '"/app/node_modules/@types/express/index"' can only be default-imported using the 'esModuleInterop' flag

typescriptVerifiedNo reports yet

TS2580: Cannot find name 'process' (or 'require', 'Buffer', '__dirname')

#40

error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.

typescriptnodeVerifiedNo reports yet

TS7016: Could not find a declaration file for module 'express'

#39

error TS7016: Could not find a declaration file for module 'express'. '/app/node_modules/express/index.js' implicitly has an 'any' type.

typescriptexpressVerifiedNo reports yet