Hello, I’m looking for a mask for ion input of the form. I didn’t get anything until now, can someone help me ??
I’ve tried br-mask but return the error:
core.js:6185 ERROR Error: Uncaught (in promise): TypeError: Cannot read property ‘id’ of undefined
I’m trying to use br-mask with the settings above.
Normal bass via npm: npm install br-mask --save -E, then just insert the module on the module page I’m using, in my case on the login.module.ts page:
import {BrMaskerModule} from ‘br-mask’;
@NgModule ({
imports: [
BrMaskerModule
],
})
When entering this and updating the error serves:
core.js: 6185 ERROR Error: Uncaught (in promise): TypeError: Cannot read property ‘id’ of undefined
is displayed on the console.
If we are unable to come up with a solution is there another mask that works with Ionic v4 ??
Apologies for late reply,
i think its not related to the br-mask module and something is wrong with your code for that input
Can u share ur html code and corresponding .ts code for this ?
Your error message says “Cannot read property ‘id’ of undefined”, so the problem has to lie somewhere where the code is attempting to read a property named “id” on an undefined object, like:
let foo;
let bar = foo.id;
I’m not seeing “id” anywhere in the code you posted.
Well, in my code there was no indefinite ID. The problem occurs just after inserting the line below in the import, after that, the message appears as an error occurs.