By just including ap-angular2-fullcalendar in my webpack Angular 4 project I get the following compile errors:
ERROR in [at-loader] TS2688: Cannot find type definition file for 'moment'.
ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:84:13
TS2403: Subsequent variable declarations must have the same type. Variable 'require' must be of type 'any', but here has type 'NodeRequire'.
By just including ap-angular2-fullcalendar in my webpack Angular 4 project I get the following compile errors:
A short-term workaround that I found here is to remove the folders
node_modules/@types/moment
andnode_modules/@types/node
: https://stackoverflow.com/questions/43802509/type-definition-file-momentjs-import-into-angular2Moment includes its own type definitions, so
@types/moment
should be removed.As for
@types/node
... Isn't this actually a devDependency and not a dependency?