tipex
tipex copied to clipboard
Using PWA without SvelteKit gives error
For now I removed the browser check with a patch. In my case I use a PWA with Routify. Maybe another more universal check if the EditLinkMenu
component is SSR or in the browser will do
I second this. Using Tipex in a non-sveltekit environment is difficult. I also needed rollup-plugin-node-polyfills in my rollup config to get over the process object.
I will consider about the EditLinkMenu
? Can I know more about the issue?
I will consider about the
EditLinkMenu
? Can I know more about the issue?
In a svelte project without sveltekit there is no $app environment. So in my patch tipex/link/EditLinkMenu.svelte
I removed the browser check;
- import { browser } from "$app/environment";
...
- if (browser && enableLinkEdit) {
+ if (enableLinkEdit) {
pasteLink();
}
if you want you could replace it with const is_browser = typeof window !== "undefined";
for example to keep framework agnostic