Skip to content

Instantly share code, notes, and snippets.

@cfanoulis
Created July 16, 2022 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfanoulis/54be1a9b80ec26a50b67756b2a868370 to your computer and use it in GitHub Desktop.
Save cfanoulis/54be1a9b80ec26a50b67756b2a868370 to your computer and use it in GitHub Desktop.
sapphire did me an oom
```js
eslint:file-enumerator Yield: edit.ts +4ms
eslintrc:cascading-config-array-factory Load config files for D:\dev\hackclub\hackclub-passport\pages\api\hackers. +1ms
eslintrc:cascading-config-array-factory Cache hit: D:\dev\hackclub\hackclub-passport\pages\api\hackers. +0ms
eslint:lint-result-cache Cache entry not found or no longer valid: D:\dev\hackclub\hackclub-passport\pages\api\hackers\edit.ts +6ms
eslint:cli-engine Lint D:\dev\hackclub\hackclub-passport\pages\api\hackers\edit.ts +4s
eslint:linter Linting code for D:\dev\hackclub\hackclub-passport\pages\api\hackers\edit.ts (pass 1) +11ms
eslint:linter Verify +0ms
eslint:linter With ConfigArray: D:\dev\hackclub\hackclub-passport\pages\api\hackers\edit.ts +0ms
eslint:linter Parsing: D:\dev\hackclub\hackclub-passport\pages\api\hackers\edit.ts +2ms
eslint:linter Parsing error: File 'tsconfig.json' not found.
eslint:linter Error: File 'tsconfig.json' not found.
at diagnosticReporter (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:99:11)
at watchCompilerHost.afterProgramCreate (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:237:13)
at synchronizeProgram (D:\dev\hackclub\hackclub-passport\node_modules\typescript\lib\typescript.js:123683:22)
at Object.createWatchProgram (D:\dev\hackclub\hackclub-passport\node_modules\typescript\lib\typescript.js:123590:9)
at createWatchProgram (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:290:22)
at getProgramsForProjects (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:188:30)
at createProjectProgram (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createProjectProgram.js:55:106)
at getProgramAndAST (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\parser.js:91:61)
at parseAndGenerateServices (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\parser.js:495:31)
at Object.parseForESLint (D:\dev\hackclub\hackclub-passport\node_modules\@sapphire\eslint-config\node_modules\@typescript-eslint\parser\dist\parser.js:90:80) +3s
eslint:linter Generating fixed text for D:\dev\hackclub\hackclub-passport\pages\api\hackers\edit.ts (pass 1) +39ms
eslint:source-code-fixer Applying fixes +3s
eslint:source-code-fixer No fixes to apply +17ms
eslint:lint-result-cache Updating cached result: D:\dev\hackclub\hackclub-passport\pages\api\hackers\edit.ts +3s
eslintrc:ignore-pattern Check {
filePath: 'D:\\dev\\hackclub\\hackclub-passport\\pages\\api\\hackers\\make.ts',
dot: false,
relativePath: 'pages/api/hackers/make.ts',
result: false
} +3s
eslint:file-enumerator Yield: make.ts +3s
eslintrc:cascading-config-array-factory Load config files for D:\dev\hackclub\hackclub-passport\pages\api\hackers. +3s
eslintrc:cascading-config-array-factory Cache hit: D:\dev\hackclub\hackclub-passport\pages\api\hackers. +7ms
eslint:lint-result-cache Cache entry not found or no longer valid: D:\dev\hackclub\hackclub-passport\pages\api\hackers\make.ts +41ms
eslint:cli-engine Lint D:\dev\hackclub\hackclub-passport\pages\api\hackers\make.ts +3s
eslint:linter Linting code for D:\dev\hackclub\hackclub-passport\pages\api\hackers\make.ts (pass 1) +106ms
eslint:linter Verify +3ms
eslint:linter With ConfigArray: D:\dev\hackclub\hackclub-passport\pages\api\hackers\make.ts +1ms
eslint:linter Parsing: D:\dev\hackclub\hackclub-passport\pages\api\hackers\make.ts +2ms
eslint:linter Parsing error: File 'tsconfig.json' not found.
eslint:linter Error: File 'tsconfig.json' not found.
at diagnosticReporter (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:99:11)
at watchCompilerHost.afterProgramCreate (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:237:13)
at synchronizeProgram (D:\dev\hackclub\hackclub-passport\node_modules\typescript\lib\typescript.js:123683:22)
at Object.createWatchProgram (D:\dev\hackclub\hackclub-passport\node_modules\typescript\lib\typescript.js:123590:9)
at createWatchProgram (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:290:22)
at getProgramsForProjects (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createWatchProgram.js:188:30)
at createProjectProgram (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\create-program\createProjectProgram.js:55:106)
at getProgramAndAST (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\parser.js:91:61)
at parseAndGenerateServices (D:\dev\hackclub\hackclub-passport\node_modules\@typescript-eslint\typescript-estree\dist\parser.js:495:31)
at Object.parseForESLint (D:\dev\hackclub\hackclub-passport\node_modules\@sapphire\eslint-config\node_modules\@typescript-eslint\parser\dist\parser.js:90:80) +2s
...
<--- Last few GCs --->
[13856:00000114B3EB9C60] 151114 ms: Mark-sweep (reduce) 2044.0 (2082.6) -> 2043.1 (2082.8) MB, 1007.1 / 0.0 ms (average mu = 0.121, current mu = 0.003) allocation failure; scavenge might not succeed
[13856:00000114B3EB9C60] 152140 ms: Mark-sweep (reduce) 2044.2 (2082.8) -> 2043.3 (2083.1) MB, 1022.3 / 0.0 ms (average mu = 0.065, current mu = 0.003) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF71DBC95DF node_api_throw_syntax_error+175103
2: 00007FF71DB57926 v8::internal::wasm::WasmCode::safepoint_table_offset+67350
3: 00007FF71DB587FD node::OnFatalError+301
4: 00007FF71E5E9C5E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF71E5D4FE2 v8::Isolate::Exit+674
6: 00007FF71E456E8C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF71E46416D v8::internal::Heap::PublishPendingAllocations+1117
8: 00007FF71E4611F7 v8::internal::Heap::PageFlagsAreConsistent+3367
9: 00007FF71E453927 v8::internal::Heap::CollectGarbage+2039
10: 00007FF71E46A2E3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
11: 00007FF71E46AB8D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
12: 00007FF71E47A3C3 v8::internal::Factory::NewFillerObject+851
13: 00007FF71E16BDA5 v8::internal::DateCache::Weekday+1349
14: 00007FF71E687301 v8::internal::SetupIsolateDelegate::SetupHeap+558193
15: 00007FF71E6BC44B v8::internal::SetupIsolateDelegate::SetupHeap+775611
16: 00007FF69EB47D3C
```
{
"name": "hackclub-passport",
"type": "module",
"scripts": {
"lint": "next lint"
},
"dependencies": {
"next": "12.2.2",
"next-transpile-modules": "^9.0.0",
"prisma": "4.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"theme-ui": "^0.14.6"
},
"devDependencies": {
"@sapphire/eslint-config": "^4.3.7",
"@sapphire/prettier-config": "^1.4.3",
"@types/node": "18.0.3",
"@types/react": "18.0.15",
"@types/react-dom": "18.0.6",
"eslint": "^8.19.0",
"eslint-config-next": "^12.2.2",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"typescript": "4.7.4"
},
"packageManager": "yarn@3.2.1",
"prettier": "@sapphire/prettier-config"
}
{
"extends": "tsconfig.json",
"compilerOptions": {
"allowJs": true,
"noEmit": true
},
"include": ["pages", "lib", "components"]
}
{
"compilerOptions": {
"alwaysStrict": true,
"baseUrl": ".",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error",
"incremental": true,
"isolatedModules": true,
"jsx": "preserve",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "es2022",
"useUnknownInCatchVariables": true,
"allowJs": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment