backlight.dev icon indicating copy to clipboard operation
backlight.dev copied to clipboard

The origami starter isn't building and throws 'Dynamic import of 'fs' not supported'

Open cdes opened this issue 3 years ago • 4 comments

📖 Reproduction steps

  1. Go to 'Create workspace'
  2. Click on 'Origami' template
  3. Wait until it takes you to the workspace.
  4. See error.

🙁 Current Behavior

The origami starter isn't building. It shows this error:

image

🙂 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)

cdes avatar Feb 23 '22 06:02 cdes

Also, this is what it shows in Chrome Version 98.0.4758.109 (Official Build) (arm64)

image

cdes avatar Feb 24 '22 15:02 cdes

Hm yeah this one I saw as well yesterday.. will ask Mihai to take a look

jorenbroekema avatar Feb 24 '22 17:02 jorenbroekema

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.

mveres avatar Feb 24 '22 19:02 mveres

For completeness

Also, this is what it shows in Chrome Version 98.0.4758.109 (Official Build) (arm64)

image

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)

muryoh avatar Feb 25 '22 07:02 muryoh