ImportJs not working on mobile device
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- mobile-dev
Research direction
Start with the engine.importJs("Ext/Scripts/MediaList.js") call and the failing dynamic-import URL shown in the report. Compare how this path is resolved on desktop versus an Obsidian mobile device, then verify that the same script can be imported from the phone's Documents location without the capacitor_file mismatch.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- TypeScript
- Stars
- 191
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mProjectsCode/obsidian-js-engine-plugin
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mProjectsCode/obsidian-js-engine-plugin#50 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mProjectsCode/obsidian-js-engine-plugin#32 · 7 comments ·
All issues in mProjectsCode/obsidian-js-engine-plugin
Similar issues
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Crush Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ElementsProject/cln-application#167 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Quantco/pnpm-licenses#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100