arktypea
arktype3y ago
20 replies
OnkelTem

ParseError: '3.0' was parsed as a number but could not be narrowed to a literal value.

I'm not sure yet, where does this come from, but does it say anything to you?
/projects/custom/hfl/node_modules/arktype/dist/cjs/utils/errors.js:25
    throw new ParseError(message);
          ^
ParseError: '3.0' was parsed as a number but could not be narrowed to a literal value. Avoid unnecessary leading or trailing zeros and other abnormal notation
    at throwParseError (/projects/custom/hfl/node_modules/arktype/dist/cjs/utils/errors.js:25:11)
    at parseWellFormed (/projects/custom/hfl/node_modules/arktype/dist/cjs/utils/numericLiterals.js:5
...
Was this page helpful?