bug: Unable to upgrade an Aurelia app to Capacitor 3
See original GitHub issueBug Report
I have followed the “Upgrading to 3.0” migration guide and am unable to get the plugins to work.
Capacitor Version
Capacitor Doctor
Latest Dependencies:
@capacitor/cli: 3.4.0
@capacitor/core: 3.4.0
@capacitor/android: 3.4.0
@capacitor/ios: 3.4.0
Installed Dependencies:
@capacitor/core: 3.4.0
@capacitor/cli: 3.4.0
@capacitor/android: 3.4.0
@capacitor/ios: 3.4.0
[success] Android looking great! 👌
Platform(s)
Web Android
Current Behavior
For Web: The following exception is thrown when a plugin method is called.
Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: http://localhost:9009/scripts/web
I can call methods on the Capacitor global such as Capacitor.isNativePlatform() in the Chrome console.
For Android, the app hangs on the splash screen and the following Capacitor errors are in logcat:
E/Capacitor: Unable to read file at path public/plugins
E/Capacitor/Console: File: http://localhost/ - Line 286 - Msg: SyntaxError: Unexpected token .
E/Capacitor: JavaScript Error: {"type":"js.error","error":{"message":"Uncaught SyntaxError: Unexpected token .","url":"http://localhost/scripts/app-bundle.js","line":24206,"col":20,"errorObject":"{}"}}
E/Capacitor/Console: File: http://localhost/scripts/app-bundle.js - Line 24206 - Msg: Uncaught SyntaxError: Unexpected token .
E/Capacitor/Console: File: http://localhost/ - Line 286 - Msg: TypeError: Cannot read property '__useDefault' of undefined
Expected Behavior
Code Reproduction
Other Technical Details
The app is written in Aurelia V1 Bundler: Aurelia bundler Module Loader: requirejs
npm --version
output:
6.14.8
yarn --version
output:
1.22.5
node --version
output:
v14.15.1
pod --version
output (iOS issues only):
Additional Context
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Capacitor V3 integration - The Aurelia Discourse
I have an Aurelia V1 app that integrates with Capacitor V2. It uses the Aurelia CLI bundler and works fine. I am in...
Read more >Updating to 3.0 | Capacitor Documentation
Guide for updating Capacitor from v2 to v3 in your app.
Read more >Capacitor 3.0 Upgrade Plugins "not implemented" Exception ...
I have followed the Capacitor migration guide (https://capacitorjs.com/docs/v3/updating/3-0) in detail, but I can't figure out where I went ...
Read more >Upgrading to Angular 14 - Ionic declares lots of issues
I was using Angular 13 with this configuration, then upgrading to 14 caused ionic to declare a bunch of issues…
Read more >Best Development Frameworks for Android - SourceForge
The core of the Ionic development experience is Ionic Capacitor, a cross platform native ... the UI of a Capacitor app runs primarily...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
with au run it’s also working for me I attach your project with my modifications AureliaCapacitorAppUpdated.zip
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.