awesome-typescript-loader icon indicating copy to clipboard operation
awesome-typescript-loader copied to clipboard

Object is possibly 'undefined' error?

Open ccorcos opened this issue 7 years ago • 1 comments

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?

ccorcos avatar Apr 13 '18 02:04 ccorcos

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),
	])

ccorcos avatar Apr 13 '18 17:04 ccorcos