router.pageComponentLoader is not a function

after creating with ui,
i got this:
navigate.js:735 Uncaught TypeError: router.pageComponentLoader is not a function
at Router.load (navigate.js:735)
at eval (navigate.js:875)
at Array.forEach ()
at resolve (navigate.js:872)
at eval (navigate.js:970)
at enterNextRoute (process-route-queue.js:57)
at leaveCurrentRoute (process-route-queue.js:71)
at Router.eval (process-route-queue.js:75)
at Router.navigate (navigate.js:962)
at Router.init (router-class.js:1197)

framework7 --version 3.0.3
npm -v 6.9.0
node -v v10.16.0
cordova --v 9.0.0 ([email protected])

“dependencies”: {
“dom7”: “^2.1.3”,
“framework7”: “^5.0.4”,
“framework7-icons”: “^3.0.0”,
“template7”: “^1.4.2”
},

I have the same error

This error is only happening in the case of the Framework7 Core. Not For Other Like Framework7 Vue. what i do for fix this error.

here is Screen Short http://prntscr.com/pixfqd

Thanks in Advance.

Are you including framework7-lite version? You shouldn’t when you use Core only version

Thank you for Response Sir.
Sir m not understand about framework7-lite version.
i was using these method for project create. before “5.0.4”, that was version is “4.4.7”.

  1. framework7 create --ui
  2. http://prntscr.com/pizhm1
  3. http://prntscr.com/pizi07
  4. http://prntscr.com/pizife
  5. http://prntscr.com/piziu6
  6. http://prntscr.com/pizjba

please guide where i am wrong.

What is in the app.js?

In framework7-custom.js change:

import Framework7 from 'framework7/framework7-lite.esm.js';

to

import Framework7 from 'framework7';
1 Like


Just initial stage of startup to project. here is no our code.

Read what i wrote above

1 Like

Thank you so much sir. its solve :slight_smile: