A new ABP project, NPM install, then NPM start, results in an error: property ‘TZ’ does not exist on type ‘type of moment’
moment.tz.setDefault ( abp.timing.timeZoneInfo . iana.timeZoneId );
Because this paragraph is wrong:
Property 'tz' does not exist on type 'typeof moment'. TS2339
24 |
25 | if (abp.clock.provider.supportsMultipleTimezone) {
> 26 | moment.tz.setDefault(abp.timing.timeZoneInfo.iana.timeZoneId);
| ^
27 | }
28 |
29 | const stores = initializeStores();
This error occurred during the build time and cannot be dismissed.
Serious,
https://blog.csdn.net/qq_ thirty-six million two hundred and seventy-nine thousand four hundred and forty-five
Change here to
import * as moment from ‘moment-timezone’;
Read More:
- Property ‘style’ does not exist on type ‘element‘
- error TS2339:Property ‘length’ does not exist on type ‘object’
- error CS0234: The type or namespace name ‘UI‘ does not exist in the namespace ‘UnityEngine‘
- Error type referred to is not an annotation type:RedisCache
- Error: (22,57) Java: type parameter… Mapper is not in the range of type variable M
- Property or field ‘Title‘ cannot be found on object of type
- Uncaught type error: cannot read property ‘MSIE’ of undefined
- Es error mapper of different type, current_ Type “text” solution
- On the usage of ‘ref.stor.type search’ field in SAP WM movement type
- Error tips:array type has incomplete element type
- array type has an incomplete element type
- error: non-const lvalue reference to type cannot bind to a value of unrelated type
- Unity Error:InvalidCastException: Cannot cast from source type to destination type.
- Enum type and set type of MySQL
- After introducing sass into Vue project, start to report error typeerror [err]_ INVALID_ ARG_ Type]: the “path” argument must be of type string
- Type definition error – one of the causes of type definition errors is WM in Oracle_ Concat function usage
- Type error: cannot unpack non Iterable non type object appears when starting Bert server in Ubuntu system
- [Solved] RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
- Element ‘dependency‘ cannot have character [children], because the type‘s content type is element-on
- No converter found capable of converting from type [java.lang.String] to type [java.util.Map<java.la