How to use chord-mark with a framework that uses SSR #632
-
Hey Christophe! Great library! I just discovered it a few days ago. I am attempting to use it with Remix.run framework, which uses SSR. Since chord-mark is a UMD module, I was wondering if you have any suggestions on how to make it work in a framework that uses ESM. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi Alex, |
Beta Was this translation helpful? Give feedback.
-
Hi Christophe, This is the error I get: |
Beta Was this translation helpful? Give feedback.
-
I think uncommenting this line before the build should do the trick. Now I need to remember why I commented it 🤔 If you could share a repo where I can experience the error then I will give it a shot asap |
Beta Was this translation helpful? Give feedback.
-
I am not able the find the This is the link to the repo: link |
Beta Was this translation helpful? Give feedback.
-
I am encountering a similar error "self is not defined" when importing |
Beta Was this translation helpful? Give feedback.
-
Sorry this fell into limbo |
Beta Was this translation helpful? Give feedback.
Sorry this fell into limbo
There is now a dedicated package for SSR and CLI usage: https://github.com/no-chris/chord-mark/tree/master/packages/chord-mark-jsdom