-
-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Angular + Capacitor (without Ionic)] "Cannot destructure property 'routes' of '(intermediate value)` as it is undefined" #1610
Comments
Would you mind sharing your small test app (in a git repository, or archive)? This way I don't have to recreate one in order to attempt to reproduce this (I don't have a capacitor + angular project ready to test this). Thanks! |
sure, I have some proprietary code at the moment, I'll try to make a cleaned up version as soon as possible, thanks |
launching
Custom code not generated by angular/capacitor installation :
let me know if you need something else or if I can help ! |
It's not ideal, but as a workaround in the meantime, i've pushed a PR to the awesome-cordova-plugins repository (see mention just above). (Note for visitors : my workaround, is only lightly tested, I'm new to both capacitor and cordova-plugin-purchase. I'll test it more thoughtfully in the next days, I'm working on a angular + capacitor in app purchase integration.) |
I'm running a small angular application, with capacitor enabled for ios/android, and everything worked fine until I import this plugin.
Context : I'm totally new to the capacitor/cordova development but I have a significant angular app running. I'm making a small test app with
cordovaedit: Capacitor to investigate the possibility to add capacitor & in-app purchases to build my app for native markets. I can't remove or disable some angular features like SSR, because they are critical for my application.Observed behavior
When I'm in a .ts file, when I add any of those two imports :
I can't build my application anymore :
(Removing this import allows the build to complete without errors)
Note : When using ng serve, the code compiles as expected.
Expected behavior
no errors during build
System Info
my (simplified) package.json :
Output of
cordova info
.The text was updated successfully, but these errors were encountered: