Happen Issue when try to watch:start with examples

I meet this issue when trying to clone example and watch:start
43 Replies
HellCatVN
HellCatVNOP2y ago
Using nove v18 , ts 5.0.4
HellCatVN
HellCatVNOP2y ago
GitHub
TS 5.1.3 Regression: TSC Compiler throws FATAL ERROR: Reached heap ...
Bug Report 🔎 Search Terms tsc, compiler, heap limit, crash, memory 🕗 Version & Regression Information This is a crash This changed between versions 5.0.4 and 5.1.3 ⏯ Repository Link https://git...
HellCatVN
HellCatVNOP2y ago
Some people said that relate to shapeshift but example not install shapeshift framework->@discordjs/builders->shapeshift So it crash @Favna hope when you online can check this issue since people can't start new fresh bot development
Favna
Favna2y ago
@HellCatVN I noticed it as well but I have no idea what the solution is Building shapeshift on 5.1.3 causing an out of memory exception Oh I just read the issue Time to apply those fixes cc @kyra @vladdy y'all didn't reply to me noting the issue before but above is the link with the reason and fix
vladdy
vladdy2y ago
Hah its the thing i wanna cleanup Which is removing the types that ensures tuple length
MRDGH2821
MRDGH28212y ago
I'm also facing this, 5.0.3 works for me, latest version doesn't
vladdy
vladdy2y ago
Its a mix of us doing something overkill and TS breaking
MRDGH2821
MRDGH28212y ago
https://github.com/MRDGH2821/Perpetual-Mechanical-Array-Bot/blob/rewrite-sapphire/package.json Fortunately my stuff is working with this package.json The moment I upgrade Typescript, all GC hell breaks loose
vladdy
vladdy2y ago
Yeah that's clear
Favna
Favna2y ago
Will you make a PR then? As in, today preferebly?
vladdy
vladdy2y ago
Well lets see I'm in Bulgaria rn I could probably try to
Favna
Favna2y ago
how's it looking @vladdy ?
vladdy
vladdy2y ago
I'm still in bulgaria And will still be in bulgaria until tomorrow Including tomorrow
Favna
Favna2y ago
"no" is also a valid answer
vladdy
vladdy2y ago
No is also a useless answer In this context
Favna
Favna2y ago
no i mean to this question ofc omegalul
vladdy
vladdy2y ago
Oh Does that fix it? O.o If yes wtf typescript
Favna
Favna2y ago
If Anders says it does then it probably does it's Anders after all
vladdy
vladdy2y ago
Well idc what they say, try it and see
Favna
Favna2y ago
linting is still f*cked urgh but yes the type instantion is fixed
vladdy
vladdy2y ago
Building works in other projects?
Favna
Favna2y ago
I assume so
vladdy
vladdy2y ago
Can you try it please
Favna
Favna2y ago
already on it
vladdy
vladdy2y ago
Bless The code looks fine (dumb, but fine), so..if it builds then it builds
Favna
Favna2y ago
vladdy
vladdy2y ago
W Stupid w
Favna
Favna2y ago
just fixing the linting now for some stupid reason the disable-next-line still has the rule being checked in some way bah the only way around it is disabling the rule entirely for the project stupid but whatever we dont really need the rule anyway we can check it ourselves well enough for the record it's @typescript-eslint/dot-notation
vladdy
vladdy2y ago
Or disable it via /* */ comments eslint-disable eslint-enable
Favna
Favna2y ago
tried it didnt work
vladdy
vladdy2y ago
Or even outright for the file O.o?
Favna
Favna2y ago
yeah idk man tried overrides in eslintrc too didnt work
vladdy
vladdy2y ago
Whats the lint rule?
Favna
Favna2y ago
the one that fails?
vladdy
vladdy2y ago
Ye
Favna
Favna2y ago
the expect here:
test('GIVEN clone THEN returns similar instance', () => {
const arrayPredicate = s.string.array;

expectClonedValidator(arrayPredicate, arrayPredicate['clone']());
});
test('GIVEN clone THEN returns similar instance', () => {
const arrayPredicate = s.string.array;

expectClonedValidator(arrayPredicate, arrayPredicate['clone']());
});
vladdy
vladdy2y ago
That's not a lint rule o.o Or? That doesn't answer my question mind you, idk what error you saw 😂😂
Favna
Favna2y ago
Oops! Something went wrong! :(

ESLint: 8.42.0

TypeError: Cannot read properties of undefined (reading 'kind')
Occurred while linting /Users/favna/workspace/sapphire/shapeshift/tests/validators/array.test.ts:227
Rule: "@typescript-eslint/dot-notation"
at MemberExpression (/Users/favna/workspace/sapphire/shapeshift/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js:102:265)
at ruleErrorHandler (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/linter.js:1050:28)
at /Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
at /Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/linter.js:1085:32
Oops! Something went wrong! :(

ESLint: 8.42.0

TypeError: Cannot read properties of undefined (reading 'kind')
Occurred while linting /Users/favna/workspace/sapphire/shapeshift/tests/validators/array.test.ts:227
Rule: "@typescript-eslint/dot-notation"
at MemberExpression (/Users/favna/workspace/sapphire/shapeshift/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js:102:265)
at ruleErrorHandler (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/linter.js:1050:28)
at /Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
at /Users/favna/workspace/sapphire/shapeshift/node_modules/eslint/lib/linter/linter.js:1085:32
ANYWAY overrides does work I just had a wrong glob before pushed, reapprove pls ❤️
vladdy
vladdy2y ago
Oh LOL that's...funky Cri Hmm, you disabled it for tests only but edited validators too Idk
Favna
Favna2y ago
yeah my bad I went a bit too hard on find and replace I revert the ones in src Released shapeshift v3.5.2 @HellCatVN
HellCatVN
HellCatVNOP2y ago
Testing tonight and feedback soon
Favna
Favna2y ago
it works for @Dragonite and @Gemboard so no doubt it will for youy
HellCatVN
HellCatVNOP2y ago
Yeah working correct that is v3.9.2
Want results from more Discord servers?
Add your server