I am using timeago.js in a TypeScript project. When compling the code, I get the following error:
$ tsc --noEmit
node_modules/timeago.js/timeago.d.ts:1:23 - error TS2688: Cannot find type definition file for 'jquery'.
1 /// <reference types="jquery" />
~~~~~~
Adding @types/jquery as a dependency instead of a devDependency in this library should fix this problem. This is also what was suggested in an earlier comment.
I am using
timeago.js
in a TypeScript project. When compling the code, I get the following error:Adding
@types/jquery
as adependency
instead of adevDependency
in this library should fix this problem. This is also what was suggested in an earlier comment.