Skip to content

ImportJs not working on mobile device #47

Description

@eatenpancreas
TypeError: failed to fetch dynamically imported module: http://localhost/_capacitor_file_/storage/emulated/0/Documents/Obsidian/vault1/Ext/Scripts/MediaList.js
const ml = await engine.importJs("Ext/Scripts/MediaList.js");

It seems to me like it is trying to fetch in the capacitor files while the actual location of the file is in the main Documents folder of my phone.

I hope it is clear that this same code works on Desktop

Would be good to know if there is a solution to this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions