Open gzf6 opened 5 years ago
@gzf6 Can you search your project and verify that this does not help:
https://forum.ionicframework.com/t/runtime-error-cannot-find-module/93967/3
I remember having this problem, too and this thread did not help me. My imports were fine. Maybe you can check following if the above one will not work:
Circular dependencies? But usually they appear with a question mark in an error message in the constructor of a class. Another thing I can remember was that somehow the whole bundling got confused by having multiple exports in a file. So by having exactly only one export per file I did not have these issues since then.
I'm submitting a ... (check one with "x") [ x] bug report [ ] feature request
Current behavior:
ionic info
when I use
ionic cordova build android --debug --aot --minifyjs --optimizejs --minifycss
to build an apk, the apk console report " Cannot find module "." ";then I use
ionic cordova build android --debug --minifyjs --optimizejs --minifycss
, everything is fine.Expected behavior:
ionic cordova build android --debug --prod
can success