personalizedrefrigerator / joplin

Joplin - an open source note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. Forum: https://discourse.joplinapp.org/
https://joplinapp.org
Other
17 stars 0 forks source link

Unandled promse rejection: Error: Unable to require module os on mobile.. Promise: [object Promise]." #2

Open nowayhaze opened 9 months ago

nowayhaze commented 9 months ago

Environment

Joplin version: prerelease-5 Platform: Android on Samsung Tab S7 Plus OS specifics: Android 13

Steps to reproduce

  1. Load "Freehand Drawing" plugin
  2. Plugin fails to load

Describe what you expected to happen

I get an error when loading io.github.personalizeerefrigerator.js-draw PluginRunner: "Plugin io.github.personalizeerefrigerator.js-draw: Unandled promse rejection: Error: Unable to require module os on mobil.. Promise: [object Promise]." I tried another plugin (ABC Sheet Music) and it does work, but the Freehand Drawing one fails to load.

personalizedrefrigerator commented 8 months ago

Thank you for letting me know!

The Freehand Drawing plugin uses temporary files (through fs-extra) to store and update drawings before sending them to Joplin. For now, there isn't a file system API available to mobile plugins.

Here are two possible ways of fixing this: