Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it working on my Mac #44

Open
gakuba opened this issue Aug 4, 2018 · 3 comments
Open

Can't get it working on my Mac #44

gakuba opened this issue Aug 4, 2018 · 3 comments

Comments

@gakuba
Copy link

gakuba commented Aug 4, 2018

Hi, I run the app and it open the first window. but when I try to register the first user, I get the following error. I have provided system information for more clarity on the issue.

System information

Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.10
Angular Core: 5.2.11
Angular Compiler CLI: 5.2.11
Node: 9.4.0
OS Platform: macOS High Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36

Error

Runtime Error
Cannot read property 'firstname' of undefined

TypeError: Cannot read property 'firstname' of undefined
at RegisterPage.webpackJsonp.329.RegisterPage.elementChanged (http://localhost:8100/build/main.js:3468:40)
at Object.eval [as handleEvent] (ng:///AppModule/RegisterPage.ngfactory.js:144:31)
at handleEvent (http://localhost:8100/build/vendor.js:13963:155)
at callWithDebugContext (http://localhost:8100/build/vendor.js:15472:42)
at Object.debugHandleEvent [as handleEvent] (http://localhost:8100/build/vendor.js:15059:12)
at dispatchEvent (http://localhost:8100/build/vendor.js:10378:25)
at http://localhost:8100/build/vendor.js:11003:38
at HTMLElement. (http://localhost:8100/build/vendor.js:44131:53)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:15660)
at Object.onInvokeTask (http://localhost:8100/build/vendor.js:5125:33)

@gakuba
Copy link
Author

gakuba commented Aug 4, 2018

ionic app

@Mavart
Copy link

Mavart commented Dec 21, 2018

I solve this error in this way:

register.ts

elementChanged(input){ //let field = input.inputControl.firstname; // this[field + "Changed"] = true; }

@tabrez96
Copy link

tabrez96 commented Dec 28, 2018

Instead of commenting on the above code, you can change it to
let field = input.ngControl.name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants