The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'.ts(1343)
TypeScript@next compile error:
The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'. (expect)tslint(1)
Currently, it is impossible to use any other
module
config instead ofcommonjs
. As a result, it is impossible to test theImportMeta
interface.You can see here, https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/snowpack-env/snowpack-env-tests.ts