./scripts/build.js/tsc() function will always fail due to undefined symbol allDiagnostics
#4219
Labels
bug
Something isn't working
allDiagnostics
#4219
Describe the bug
#4007 added a new ./scripts/build.js file with a
tsc()
function. This function will always throw becauseallDiagnostics
is always undefined. In fact there's no other place in the amplify-js codebase where this symbol is used.amplify-js/scripts/build.js
Line 62 in 94b7181
To Reproduce
I was able to repro this last night by just running
yarn run build
. But before filing this issue I wanted to verify on a clean dev environment so I ranyarn run clean
and tried a build again and got no errors. So clearly something was corrupted somewhere in my original dev environment. I'm not sure why my previous environment ended up callingtsc()
but a clean one didn't.That said, this
tsc()
function will always throw if it's run, so either this is unused code that should be removed, or this code will need to be fixed.The text was updated successfully, but these errors were encountered: