The following is a snippet of code:
function requireAuth(nextState, transition, callback) {
console.log('hey');
callback();
}
export const AdminList = {
'path': 'admin-area/admin-list',
getComponent(location, cb) {
require.ensure([], (require) => {
cb(null, require('components/admin/admin-list/admin-list').default);
}, 'admin-list');
},
'onEnter': {requireAuth}
};
When /admin-area/admin-listI enter the path, I get the error mentioned in the header from the TransitionUtils.js file .
I am not sure what causes this error. Can anybody help?
source
share