Open sambacha opened 2 years ago
Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.ts(1378)
- import JSBI from 'jsbi'; - import { JSBI } from 'jsbi'; - const JSBI = require('jsbi'); + const { JSBI } = await import('JSBI'); - type JSBI = import('jsbi').JSBI
Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.ts(1378)