Capacitor: bug: Not working with nuxt.js

Created on 18 May 2020  路  1Comment  路  Source: ionic-team/capacitor

Bug Report

Capacitor Version: 2.1.0

npx cap doctor output:

Latest Dependencies:

  @capacitor/cli: 2.1.0

  @capacitor/core: 2.1.0

  @capacitor/android: 2.1.0

  @capacitor/electron: 2.1.0

  @capacitor/ios: 2.1.0

Installed Dependencies:

  @capacitor/ios not installed

  @capacitor/electron not installed


  @capacitor/cli 2.1.0

  @capacitor/core 2.1.0

  @capacitor/android 2.1.0

[success] Android looking great!

Affected Platform(s)

  • [x] Android
  • [ ] iOS
  • [ ] Electron
  • [ ] Web

Current Behavior

The app is not loading properly and seeing these errors on Android Studio. Unable to open asset URL.
image
App gets stuck on nuxt.js loading screen
image

Expected Behavior

Should load the nuxt web app as an android application.

Sample Code or Sample Application Repo

Repo of the web app I am trying to convert on to an android app https://github.com/azs06/ramadan-time
capactitor.config.json

{
  "appId": "com.ramdantime.com",
  "appName": "ramadan-time",
  "bundledWebRuntime": false,
  "npmClient": "npm",
  "webDir": "dist",
  "plugins": {
    "SplashScreen": {
      "launchShowDuration": 0
    }
  },
  "cordova": {}
}

Reproduction Steps

Just clone the repo,
npm install
npx cap add android
npx cap open android
On Android studio hit the play button.

Other Technical Details

npm --version output: 6.14.5

node --version output: v10.16.0

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peterpeterparker picture peterpeterparker  路  3Comments

danielsogl picture danielsogl  路  3Comments

mlynch picture mlynch  路  3Comments

stripathix picture stripathix  路  3Comments

json-derulo picture json-derulo  路  3Comments