-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Bug report) share.js broken on share pages on v0.91.3-beta #1029
Comments
when I try the same with the latest code on Something along the lines of Will need to research a bit here. Was it working for you on the previous beta release by any chance? Edit: with tag Will take a look this evening to pinpoint the issue |
It was working on 0.91.1-beta which was the last version I used. I saw the same thing you did (mime issue) on dev branch when running locally, though I never tried actually deploying dev to a real server. |
seems the behaviour got added with b3b8ae4 edit: when I run locally in "non-Dev" mode, it also throws me a similar issue as you have above: Will take a closer look at what could be the cause of this :-) edit 2025-01-23:some notes here, coming closer to solving the mystery :-) non-dev mode (i.e. , TRILIUM_ENV=anything_but_dev)When in non-dev mode , the That path does not exist and returns a JSON error message about a not found route (this explains the MIME Type conflict :-)). dev mode (i.e. , TRILIUM_ENV=dev)The share page template is looking for the file at edit 2025-01-24:regarding non-dev mode remark above: scratch that -> that was caused due to the incomplete npm run scripts in package.json, which are not rebuilding webpack, if you don't do it manually – which I forgot :-) |
note: I temporarily worked around this error by copying the two js statements to the top of my Thanks for looking into this! |
quick question: may I know how you installed your version? |
quick update on this again: The I'm still looking into finding a way to make this work with Webpack directly though to get rid of this extra copying step. edit: |
Yes, docker. I deployed it to my dokku instance via |
ok, thanks for the confirmation. |
Description
I can't call
fetchNote
on my share pages' clientside javascript because the builtin share.js has some error. This error happens on firefox and chromium when visiting any shared page.Uncaught SyntaxError: export declarations may only appear at top level of a module
This is the share.js my browser (firefox) recieves when visiting a page (i think the error is from the 2nd to last line,
export {};
).TriliumNext Version
0.91.3-beta
What operating system are you using?
Other Linux
What is your setup?
Local + server sync
Operating System Version
Linux 6.12.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000 x86_64 GNU/Linux
Error logs
No response
The text was updated successfully, but these errors were encountered: