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

Failed to get route: typeError: Cannot read properties of undefined (reading 'split') at UssdMenu.resolveRoute #39

Open
Robertishimwe opened this issue Jan 20, 2024 · 1 comment

Comments

@Robertishimwe
Copy link

I am getting this error whenever I try to my app. if you have bypassed this kindly assist.

Failed to get route: TypeError: Cannot read properties of undefined (reading 'split')
at UssdMenu.resolveRoute (/var/task/node_modules/ussd-menu-builder/lib/ussd-menu.js:76:46)
at /var/task/node_modules/ussd-menu-builder/lib/ussd-menu.js:357:22
/var/task/node_modules/ussd-menu-builder/lib/ussd-menu.js:365
return this.emit('error', new Error(err));
^

Error: TypeError: Cannot read properties of undefined (reading 'split')
at /var/task/node_modules/ussd-menu-builder/lib/ussd-menu.js:365:43
Emitted 'error' event on UssdMenu instance at:
at /var/task/node_modules/ussd-menu-builder/lib/ussd-menu.js:365:29

Node.js v18.18.2

@Robertishimwe Robertishimwe changed the title ypeError: Cannot read properties of undefined (reading 'split') at UssdMenu.resolveRoute Failed to get route: typeError: Cannot read properties of undefined (reading 'split') at UssdMenu.resolveRoute Jan 20, 2024
@habbes
Copy link
Owner

habbes commented Feb 26, 2024

Could you share some sample code to reproduce the issue. It appears like it was trying to split a string but the string was undefined. How did you defined your routes?

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

2 participants