Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Cannot use typings on case-sensitive filesystems #72

@peterkelly

Description

@peterkelly

When building an app that uses the microsoft-speech-browser-sdk on a case-sensitive filesystem, such as those used on most Linux systems, the TypeScript compiler gives the following error:

app/chat/cordova-audio-source.ts(20,8): error TS7016: Could not find a declaration file for module 'microsoft-speech-browser-sdk'. '/build/mobile/node_modules/microsoft-speech-browser-sdk/distrib/Speech.Browser.Sdk.js' implicitly has an 'any' type.
  Try `npm install @types/microsoft-speech-browser-sdk` if it exists or add a new declaration (.d.ts) file containing `declare module 'microsoft-speech-browser-sdk';`

This happens because package.json contains the following:

"types": "distrib/speech.browser.sdk.d.ts",

when in fact the file is called Speech.Browser.Sdk.d.ts (note capitalisation differences).

The types field in package.json should be updated to use the correct case.

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