Have you try to add quote around the modal name?
component: 'ModalPage',
instead of
component: ModalPage,