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
When using this library in a typescript project with strict mode turned on, the ts compiler complains about missing declaration file semver/classes/semver. The error is caused because we import SemVer in our types.d.ts. The declaration (@types/semver) is specified as dev dependency, so they are not present when using release-script.
There are two possible solutions for this problem
Move the @types/semver from devDependencies to dependencies
Include the definitions for SemVer in our types.d.ts
The text was updated successfully, but these errors were encountered:
sonallux
changed the title
Missing external declarations when using with typescript in strict mode
Missing declaration file when using with typescript in strict mode
Apr 9, 2020
When using this library in a typescript project with strict mode turned on, the ts compiler complains about missing declaration file
semver/classes/semver
. The error is caused because we importSemVer
in ourtypes.d.ts
. The declaration (@types/semver
) is specified as dev dependency, so they are not present when using release-script.There are two possible solutions for this problem
@types/semver
fromdevDependencies
todependencies
SemVer
in ourtypes.d.ts
The text was updated successfully, but these errors were encountered: