Electron / CJS for nord-theme #1233
Replies: 3 comments
-
I have the same issue style.css from theme-nord is not loaded in Electron app. |
Beta Was this translation helpful? Give feedback.
-
Fixed this issue like this: https://github.com/tagspaces/tagspaces/blob/develop/src/renderer/app.global.css#L10 |
Beta Was this translation helpful? Give feedback.
-
yes I include tailwind, do you think tailwind causes it or are you saying its a requirement? I applied your fix to my index.css, it is this and it still fails with same error:
|
Beta Was this translation helpful? Give feedback.
-
I tried to setup milkdrop in Electron and got hit with:
Module not found: Error: Package path . is not exported from package /Users/vanjaoljaca/work/vanjacloud/vanjacloud.desktop/node_modules/@milkdown/theme-nord (see exports field in /Users/vanjaoljaca/work/vanjacloud/vanjacloud.desktop/node_modules/@milkdown/theme-nord/package.json)
ChatGPT suggested adding this to theme-nord to make it cjs compatible (needed for electron)
package.json:
This fixed start up at least, but loading the config has no impact on appearance so I think there's more work to be done. Before I dive in I wanted to check in on what is already known about cjs/electron support.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions