backlight.dev
backlight.dev copied to clipboard
The origami starter isn't building and throws 'Dynamic import of 'fs' not supported'
📖 Reproduction steps
- Go to 'Create workspace'
- Click on 'Origami' template
- Wait until it takes you to the workspace.
- See error.
🙁 Current Behavior
The origami starter isn't building. It shows this error:

🙂 Expected Behavior
It should build and work.
🔗 Link to the design system
https://backlight.dev/edit/uFqysc3vzIUCKcLCbZGp/introduction/doc/introduction.mdx?p=doc
🌐 What browser(s) are you seeing the problem on?
Safari
Browser version(s)
Version 15.2 (17612.3.6.1.6)
Also, this is what it shows in Chrome Version 98.0.4758.109 (Official Build) (arm64)
Hm yeah this one I saw as well yesterday.. will ask Mihai to take a look
Hi @cdes! Thanks for taking the time to open the issue. This is a Safari only issue, it won't reproduce in Chrome or Firefox. We are aware it exists and we'll address it, but it's not a quick fix. Please try to work around it by using another browser untill we have a fix for it.
For completeness
Also, this is what it shows in Chrome Version 98.0.4758.109 (Official Build) (arm64)
This one was fixed in the starter-kit itself, you can apply the same fix in your design system or re-create one from the starter-kit to fix the issue: https://github.com/divriots/starter-origami/pull/26/files
The original issue regarding Safari is a known issue we have a fix for in the backlog, but requires work because of Safari technical limitations (notably memory limitations on wasm)