尝试编译Ionic 2应用程序,我在我认为的表单上的html输入验证器上遇到以下错误。
C:\Users\XXXXX\XXXXXXX\XXXXX>ionic run android -device
> ionic-hello-world@ ionic:build C:\Users\kolade\Documents\spark
> ionic-app-scripts build
[12:08:05] ionic-app-scripts 0.0.43
[12:08:05] build prod started ...
[12:08:05] clean started ...
[12:08:05] clean finished in 8 ms
[12:08:05] copy started ...
[12:08:05] ngc started ...
[12:08:05] copy finished in 340 ms
[12:08:47] Error: Error at C:/Users/kolade/Documents/spark/.tmp/pages/signup/signup.ngfactory.ts:1207:100
[12:08:47] Property 'required' does not exist on type '{ [key
[12:08:47] string]: any; }'.
[12:08:47] Error at C:/Users/kolade/Documents/spark/.tmp/pages/signup/signup.ngfactory.ts:1210:100
[12:08:47] Property 'pattern' does not exist on type '{ [key
[12:08:47] string]: any; }'.
[12:08:47] Error at C:/Users/kolade/Documents/spark/.tmp/pages/signup/signup.ngfactory.ts:1264:100
[12:08:47] Property 'required' does not exist on type '{ [key
[12:08:47] string]: any; }'.
[12:08:47] Error at C:/Users/kolade/Documents/spark/.tmp/pages/signup/signup.ngfactory.ts:1267:100
[12:08:47] Property 'pattern' does not exist on type '{ [key
[12:08:47] string]: any; }'.
[12:08:47] ngc failed
[12:08:47] ionic-app-script task: "build"
[12:08:47] Error: Error
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\kolade\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "ionic:build" "--"
npm ERR! node v4.4.7
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ ionic:build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ ionic:build script 'ionic-app-scripts build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ionic-hello-world
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\kolade\Documents\spark\npm-debug.log
如何修复此错误,打字稿似乎不够聪明,无法确定html元素的属性。