You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a lib uses tsdx to build a module to consume at the backend (AWS Lambda running on Node 12.x), then build with tsc by Typescript 3.8.
Today, I updated to 0.28.2 and get the following error message
{"errorType": "TypeError","errorMessage": "Cannot use 'in' operator to search for 'excludeEmptyString' in At least 8 characters longs, with Lower case letters (a-z), Upper case letters (A-Z), Numbers (0-9) and Special characters (!@#$%^&*()-+_=,.?/;:'\").","stack": ["TypeError: Cannot use 'in' operator to search for 'excludeEmptyString' in At least 8 characters longs, with Lower case letters (a-z), Upper case letters (A-Z), Numbers (0-9) and Special characters (!@#$%^&*()-+_=,.?/;:'\")."," at StringSchema.matches (/var/task/node_modules/yup/lib/string.js:107:51)"," at Object.<anonymous> (/var/task/node_modules/@albert-gao/teaming-cloud-shared/dist/teaming-cloud-shared.cjs.development.js:46:14)"," at Module._compile (internal/modules/cjs/loader.js:955:30)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)"," at Module.load (internal/modules/cjs/loader.js:811:32)"," at Function.Module._load (internal/modules/cjs/loader.js:723:14)"," at Module.require (internal/modules/cjs/loader.js:848:19)"," at Module._require.o.require (/var/task/serverless_sdk/index.js:9:91865)"," at require (internal/modules/cjs/helpers.js:74:18)"," at Object.<anonymous> (/var/task/node_modules/@albert-gao/teaming-cloud-shared/dist/index.js:7:20)"]}
The line it refers:
constERR_MSG=`At least 8 characters longs, with Lower case letters (a-z), Upper case letters (A-Z), Numbers (0-9) and Special characters (!@#$%^&*()-+_=,.?/;:'").`constpassword=string().matches(REGEX.PASSWORD,ERR_MSG).required()
The text was updated successfully, but these errors were encountered:
Albert-Gao
changed the title
0.28.2 causes runtime error
0.28.2 causes runtime error: Cannot use in operator to search for excludeEmptyString
Mar 6, 2020
I have a lib uses
tsdx
to build a module to consume at the backend (AWS Lambda running on Node 12.x), then build withtsc
by Typescript 3.8.Today, I updated to
0.28.2
and get the following error messageThe line it refers:
The source code is here:
27e5d68#diff-57c5960218f1091895b3610a7d779378
by changing from
to
It causes the error, seems pretty strange.
The text was updated successfully, but these errors were encountered: