I am currently working on an Angular2 project with custom modules to keep the code clean. Everything was fine until I copied this module into another project.
Ever since I've copied the module into another project, I get the following error: Uncaught TypeError: Cannot read property 'visitExpression' of undefined
.
After hours of googling I found out a couple of possible reasons, which I have all tested (and did not work):
Here are some other things I tried:
I am kind of clue less as to what to try next, any suggestions?
Any misplaced commas in Routes array can cause this
const authRoutes: Routes = [, //<--- This was my issue when I faced it
{path: 'signup', component: SignupComponent},
{path: 'signin', component: SigninComponent},
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With