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.

Breaking Change v3.8.0 => v3.9.0

See original GitHub issue

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version (use command below): 3.9.0

Describe the current behavior

Upgraded from 3.8.0 to 3.9.0, and typescript throws an error:

Error: node_modules/@tensorflow/tfjs-core/dist/hash_util.d.ts:2:49 - error TS2304: Cannot find name ‘Long’.

image

Using typescript 4.3.5.

Perhaps missing import Long from 'long'; in image

Describe the expected behavior

No breaking change

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
Playfrog4ucommented, Nov 22, 2021

I am also having the same issue on a fresh Angular 12 install… Version is 3.11.0

When I manually add /// <reference types="long" /> to the hash_util.d.ts it works as expected.

Before

/// <amd-module name="@tensorflow/tfjs-core/dist/hash_util" />
export declare function hexToLong(hex: string): Long;
export declare function fingerPrint64(s: Uint8Array, len?: number): Long;

After

/// <amd-module name="@tensorflow/tfjs-core/dist/hash_util" />
/// <reference types="long" />
export declare function hexToLong(hex: string): Long;
export declare function fingerPrint64(s: Uint8Array, len?: number): Long;
3reactions
AmitMYcommented, Dec 10, 2021

v3.12.0

Added @types/long to my compilerOptions.types worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breaking changes in the C# compiler - Microsoft Learn
Find any breaking changes in the C# compiler that you're using. ... Breaking changes in Roslyn 3.0 (VS2019) from Roslyn 2.
Read more >
Breaking Changes | Electron
Breaking changes will be documented here, and deprecation warnings added to JS ... The following list includes the breaking API changes in Electron...
Read more >
Release notes v3.9.0 - Alfresco Builder Network
These release notes provide information about the 3.9.0 release of the Alfresco Application Development Framework. This is the latest General Available ...
Read more >
Upgrade from version 8 to the modular Web SDK - Firebase
Version 9 introduces a breaking change in getRedirectResult . When no redirect operation is called, Version 9 returns null as opposed to Version...
Read more >
Jekyll v3.9.0 just released
v3.9.0 was released as a special case to allow users on the v3.x series (primarily since GitHub Pages can't upgrade to v4 right...
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