Every time I try to use Date
, I encounter the following error during compilation:
'Date' cannot be found
Here is an example of how it is used:
var pastEvents = Events.find({ timestamp: { $lt: new Date() }});
Points to Note:
- The same issue occurs with other basic types such as
string
andnumber
. - This problem is within an Angular2 Meteor application.
- I have not imported anything at the top, so that could be causing the problem.
If you need more details, I can provide typings, my tsconfig.json file, or any other necessary information. Just inform me.