You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I navigate to the page with this.navCtrl.navigateForward('pages/somepage', navigationOptions);, it then gives the error: ReferenceError: Cannot access module before initialization ionic angular android 12
what could be the possible reason ? I have used tools like madge and dpdm to check for circular dependency but none found. But dpdm did gave the following warning: skip "node_modules/ng2-pdf-viewer/fesm2022/ng2-pdf-viewer.mjs", issuers: "src/app/app.module.ts", "src/app/pages/somepage/somepage.module.ts"
The text was updated successfully, but these errors were encountered:
Alhamdulillah got the solution. Had to downgrade the ng2-pdf-viewer version to 9.1.5 to make it work on android 12 as well. Not sure about the reason but Allah's mercy guided me through here.
I have imported the PdfViewerModule in the module where I want to use, it is working fine. But it gives the error when running in android 12.
somepage-module.ts file:
somepage-routing-module.ts file:
app-routing-moudle.ts
When I navigate to the page with
this.navCtrl.navigateForward('pages/somepage', navigationOptions);
, it then gives the error:ReferenceError: Cannot access module before initialization ionic angular android 12
what could be the possible reason ? I have used tools like madge and dpdm to check for circular dependency but none found. But dpdm did gave the following warning:
skip "node_modules/ng2-pdf-viewer/fesm2022/ng2-pdf-viewer.mjs", issuers: "src/app/app.module.ts", "src/app/pages/somepage/somepage.module.ts"
The text was updated successfully, but these errors were encountered: