Skip to content

[Error] NetworkInformation, missing Interface.  #418

Open

Description

@phyr0s

When installing and running the project the interface NetworkInformation does not exist -->

Error: node_modules/botframework-directlinejs/lib/directLineStreaming.d.ts:13:26 - error TS2304: Cannot find name 'NetworkInformation'.

13 networkInformation?: NetworkInformation;
~~~~~~~~~~~~~~~~~~

Activity

  1. GusLAN commented on Feb 26, 2024

    @GusLAN

    +1

  2. brolo1313 commented on Mar 18, 2024

    @brolo1313

    and what is solution? the same

  3. igor-h commented on May 10, 2024

    @igor-h

    I'm facing same issue:

    Error: node_modules/botframework-directlinejs/lib/directLineStreaming.d.ts:13:26 - error TS2304: Cannot find name 'NetworkInformation'.
    
    13     networkInformation?: NetworkInformation;
    

    Cannot find any solution.
    I'm using Angular 16.2.
    And Typescript 5.1.3

  4. igor-h commented on May 10, 2024

    @igor-h

    did you found any solution for it guys?
    phyr0s Andrew Yupin (@brolo1313) Gustavo Lanza Duarte (@GusLAN)

  5. phyr0s commented on Nov 18, 2024

    @phyr0s
    Author

    Hello, any information about this issue William Wong (@compulim) ?
    Thanks

  6. VilleFTW commented on Jan 19, 2025

    @VilleFTW

    The same issue is encountered in Angular 17.3

    As a temporary fix, you can install the following types

    npm add -D network-information-types

    Then, if you are using Angular, make sure to add it to your ts.config under compilerOptions

    "types": [ "./node_modules/network-information-types" ]

    Else; then make sure you bundle the types along with the build

  7. Tjitse commented on Aug 5, 2025

    @Tjitse

    Same issue and VilleFTW s workaround did not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions