We have an old ionic app running email@example.com and firstname.lastname@example.org with cordova. But we’re not able to build this app anymore due cordova issue. I’ve managed to remove cordova and use capacitor quite easily, we’re not using a lot of native plugins.
The app runs well in dev mode (
ionic-app-scripts serve), I can build it with
ionic-app-scripts build --prod without any issue but when I try to start the build project with
http-server I get the following error with a blank screen :
Uncaught Error: Cannot find module "." at vendor.js:1:911940 at vendor.js:1:912010 at Object.<anonymous> (vendor.js:1:912161) at e (vendor.js:1:101) at 257 (main.js:1:160562) at e (vendor.js:1:101) at window.webpackJsonp (vendor.js:1:416) at main.js:1:1
It works without the
--prod flag but I guess it’s not optimised.
Is there a way to make the app runs in production without having to migrate to ionic@6?