Typescript Compile Error: resourceId.d.ts: BigInteger
See original GitHub issueIssue
When compiling with 2.0.1 version of cosmos lib, the build fails with the following error
`> tsc --project tsconfig.json
node_modules/@azure/cosmos/lib/common/resourceId.d.ts:2:8 - error TS1192: Module ‘“/app/parking-storage-client/node_modules/big-integer/BigInteger”’ has no default export.
2 import BigInt from “big-integer”;`
Expected Behavior Compilation works
Reproduction steps When I use 2.0.0-4 compilation works. When I change to 2.0.1 it fails. With no other code issues changes.
** Versions ** “ts-node”: “^7.0.0”, “tslint”: “^5.10.0”, “typescript”: “2.9.2”
tsconfig.json
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"declaration": true,
"noImplicitAny": false,
"noEmitOnError": true,
"noImplicitReturns": true,
"noResolve": false,
"preserveConstEnums": true,
"sourceMap": true,
"rootDir": "./",
"outDir": "./out",
"lib": [
"es5",
"es6",
"dom",
"es2015.core",
"es2015.collection",
"es2015.generator",
"es2015.iterable",
"es2015.promise",
"es2015.proxy",
"es2015.reflect",
"es2015.symbol",
"es2015.symbol.wellknown",
"esnext.asynciterable"
]
},
"include": [
"index.ts",
"./src/**/*.ts",
"./test/**/*.ts"
],
"exclude": [
"node_modules",
"index.d.ts",
"./src/**/*.d.ts",
"./test/**/*.d.ts"
]
}
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Unable to use BigInt in typescript version 3.1.6. error TS2304
So, method left to me was using 3rd party library & I used big-integer from npm because it has my required bitwise AND...
Read more >Documentation - TypeScript 3.2
As specified in ECMAScript, mixing number s and bigint s in arithmetic operations is an error. You'll have to explicitly convert values to...
Read more >Deno: Releases.md | Fossies
fix(bench): update typo in bench summary (#14672); fix(cli/dts): change ChildStatus.signal from ... fix(cli): improve deno compile error messages (#13944) ...
Read more >Releases.md · Gitee 极速下载/deno - Gitee.com
deno deno 是 V8 上的安全 TypeScript 运行时. ... feat(serde_v8): Serialize integers as BigInt (#15692); fix(check): --remote and --no-remote should be ...
Read more >https://jfrog.gallerycdn.vsassets.io/extensions/jf...
All constraints within a group are AND'd together (all must be evaluate to True in order ... register an enhancement for that class...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@christopheranderson yes, esModuleInterop fixes the issue. but for my code throws a bunch of other issue’s i’d need to clean up. “allowSyntheticDefaultImports”: true fixes it with out any other compilation issues.
👍
@bluto56 Looks like you worked around, but we have removed big-integer entirely so this should no longer be an issue