About 50 results
Open links in new tab
  1. Moment.js + TypeScript. Cannot find name moment - Stack Overflow

    import * as moment from 'moment/moment.js'; I still seem to be getting the correct typescript definitions even referencing the js file directly. I suspect the reason is that the 'moment' folder under …

  2. TypeScript error: Cannot find module 'moment' - Stack Overflow

    Looking in the node_modules directory, I can see the moment package, and the package.json file says moment is on version 2.25.0 I've tried clearing npm cache, deleting node_modules and package …

  3. How can moment.js be imported with typescript? - Stack Overflow

    Apr 15, 2016 · Normally you use the --ambient flag for all Typescript definitions from typings / DefinitelyTyped but the moment definition has some strange structure and the files are not …

  4. How to use moment.js library in angular 2 typescript app?

    Feb 3, 2016 · I tried to use it with typescript bindings: npm install moment --save typings install moment --ambient -- save test.ts: import {moment} from 'moment/moment'; And without: npm install moment - …

  5. Cannot find type definition file for 'moment'. The file is in the ...

    Aug 15, 2023 · The file is in the program because: Entry point for implicit type library 'moment'ts JSON schema for the TypeScript compiler's configuration file My tsconfig.json code:

  6. MomentJS type definition with Typescript 2.0 - Stack Overflow

    Oct 21, 2016 · Alright, my first question on SO, how exciting! :) I am trying to get MomentJS definitions to work with Typescript 2.0. I have no issues in getting Angular definitions to work, simply by doing npm

  7. momentjs - How to consume the Moment.js TypeScript definition file if ...

    Feb 15, 2017 · How to consume the Moment.js TypeScript definition file if my site is already using moment.min.js? Asked 8 years, 5 months ago Modified 2 years, 2 months ago Viewed 11k times

  8. InvalidPinDefError at the moment of definition the pins

    I'm trying to use pyfirmata to send and receive data between Arduino Uno R3 and my python program. At Arduino installed StandartFirmata sketch. Code is: from time import sleep import serial import

  9. Type definition of RangePicker onChange date paramater

    Oct 13, 2020 · Type definition of RangePicker onChange date paramater Asked 5 years, 3 months ago Modified 5 years, 3 months ago Viewed 5k times

  10. Typescript can't find dependency moment definition file

    Nov 27, 2016 · Typescript can't find dependency moment definition file Asked 8 years, 10 months ago Modified 8 years, 10 months ago Viewed 766 times