Skip to content

joshcartme/tsgo-esm-commonjs-import-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsgo doesn't allow importing from a commonJS module in a way that tsc does allow.

$ yarn run tsc

Done in 0.55s.
yarn run tsgo

index.ts:1:21 - error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.

1 import { foo } from "./shared.vars";
                      ~~~~~~~~~~~~~~~

Found 1 error in index.ts:1

error Command failed with exit code 2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published