For; "class-validator": "^0.12.0-rc.0",
C:\Usersnewca\Desktop\projectsnestjsnestjs-todonode_modules\class-validator\bundles\index.umd.js:11298
var phoneUtil = undefined();
^
TypeError: undefined is not a function
at C:\Usersnewca\Desktop\projectsnestjsnestjs-todonode_modules\class-validator\bundles\index.umd.js:11298:21
at C:\Usersnewca\Desktop\projectsnestjsnestjs-todonode_modules\class-validator\bundles\index.umd.js:2:68
at Object.
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.
same here :(
same :(
Are you sure it is 0.12.0-rc.0. This looks more like problem in new experimental 0.12.0-refactor.2 version published lately.
The 0.12.0-rc.0 is working fine for me, but the 0.12.0-refactor.1 and 0.12.0-refactor.2 the problem starts.
What you can do is downgrade the version back to 0.12.0-rc.0.
You can see the list of versions using yarn info class-validator and then just yarn upgrade class-valitador@<version>
refactor. versions are unstable. Please use 0.11 or 0.12.0-rc.0 until stable 0.12 released :)
What environment do you use? Browser or Nodejs? What frameworks?
I use nestjs
What environment do you use? Browser or Nodejs? What frameworks?
downgrading to 0.11.1 worked fine for me
Changed latest and stable npm tag to v0.11.1. Sorry for the troubles.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
What environment do you use? Browser or Nodejs? What frameworks?