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

Cannot use typings on case-sensitive filesystems #72

Open
peterkelly opened this issue Mar 6, 2018 · 0 comments
Open

Cannot use typings on case-sensitive filesystems #72

peterkelly opened this issue Mar 6, 2018 · 0 comments

Comments

@peterkelly
Copy link

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.

peterkelly added a commit to Keyoniq/ms-speech that referenced this issue Mar 6, 2018
When building an app that uses this module on a case-sensitive
filesystem, such as those used on most Linux systems, the typings file
listed in package.json is not found. The file actually exists, but has
the wrong case.

This commit changes the typings to refer to Speech.Browser.Sdk.d.ts, not
its lower-cased version, so that it will be found correctly on Linux.

Fixes Azure-Samples#72
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant