awesome-typescript-loader
awesome-typescript-loader copied to clipboard
Object is possibly 'undefined' error?
I have a rather bizarre issue where I'm getting errors when building with webpack. But I'm not seeing any errors when I run tsc. Not sure what's up with this or how to minimally reproduce. I'm still migrating to webpack 4. Any ideas?
I figured it out!
Whenever I await a promise inside Promise.all, I get this error.
const [user, space] = await Promise.all([
await postgres.getRecordValue(UserSchema.table, userId, true),
await postgres.getRecordValue(SpaceSchema.table, spaceId, true),
])