When utilizing dynamic import with TypeScript in Visual Studio 2017, I encountered the following error: TS1323(TS) Dynamic imports are only supported when the '--module' flag is set to 'commonjs' or 'esNext'.
I attempted to change the settings of my project, but found that 'esNext' was not listed as a module option. I tried manually modifying the project without success, and I prefer not to use a .config file for TypeScript.
Is there any solution available to suppress this error or add the 'esNext' option in VS2017?