Comments (8)
Hmm it seems that the error object isn't properly printed by the console you're using. I've tried Image Caption and the error I'm seeing (with a proper debug mode Safari remote debugger) is:
SyntaxError: Invalid regular expression: invalid group specifier name.
This seems to be due to the use of the negative lookbehind. I will comment on that plugin's issue.
from obsidian-sample-plugin.
Thanks @lishid. Do you know what is causing the error in the sample plugin on mobile?
from obsidian-sample-plugin.
I did not check actually. What process did you use to build/install the sample plugin? As far as I know it's not available in the plugin store.
from obsidian-sample-plugin.
I cloned the repository to my local machine, then transferred it to my phone via USB.
from obsidian-sample-plugin.
Did you build it and test on desktop first?
from obsidian-sample-plugin.
I had not, and indeed rebuilding the app fixed the issue.
I assumed the included main.js
would correspond to the build of the code, but perhaps it doesn't?
Thanks for pointing that out.
from obsidian-sample-plugin.
The main.ts file is the typescript source and it's built into main.js which is what Obsidian actually runs on.
from obsidian-sample-plugin.
Ah, sorry. I didn't realize there wasn't a main.js
file included with the plugin by default. Just an oversight on my side.
from obsidian-sample-plugin.
Related Issues (20)
- Feature request - TSDoc integration HOT 1
- Obsidian App doesn't seem to load custom plugin
- Failed to run `npm run dev` HOT 1
- Can't build plugin with npm run dev HOT 3
- npm install not working? HOT 1
- Add additional Functionality to the Plugin HOT 2
- [BUG] TypeScript Compile fails in Sample Plugin with TypeScript `5.1.6` HOT 1
- [BUG] Failed to compile on Linux Pop!_OS 22.04 LTS HOT 2
- esbuild.config.mjs sourcecode HOT 1
- Minify production build
- My mistake
- Config Dir sync no longer working (Reported .DS_Store issue) HOT 1
- Organise typescript sources into separate src hierarchy
- adding a toggle button HOT 1
- Display download successful, but not in the local file library HOT 1
- Custom View Explorer
- [feature request] multiple cursor positions (each linked to a different tab) for same file HOT 2
- obsidian fails to load sample plugin HOT 1
- Version number for tags and releases HOT 1
- License
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-sample-plugin.