Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Latest commit

 

History

History
11 lines (9 loc) · 466 Bytes

File metadata and controls

11 lines (9 loc) · 466 Bytes

webpack and typescript optional chaining error

This repo reproduces an "Module parse failed: Unexpected token" when using optional chaining or nullish coalescing operator with TS target "ESNext" in compiler options.

package version
webpack 4.41.5
typescript 3.7.4
ts-loader 6.2.1
webpack-cli 3.3.10

Note: To be clear typescript is not needed to reproduce this error but in my case I using it