You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
FixesAzure-Samples#72
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:This happens because
package.json
contains the following:when in fact the file is called
Speech.Browser.Sdk.d.ts
(note capitalisation differences).The
types
field inpackage.json
should be updated to use the correct case.The text was updated successfully, but these errors were encountered: