question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript Compile Error: resourceId.d.ts: BigInteger

See original GitHub issue

Issue

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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mattKorwelcommented, Sep 28, 2018

@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.

👍

0reactions
southpolestevecommented, Oct 30, 2018

@bluto56 Looks like you worked around, but we have removed big-integer entirely so this should no longer be an issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found