ayoayco / McFly

[🚧 PoC] Back to the Basics. Into the Future. 😱
https://mcfly.js.org
MIT License
70 stars 3 forks source link

bug(core): evalStore not a constructor error on production build #35

Open ayoayco opened 7 months ago

ayoayco commented 7 months ago

Seems to be caused by Storage.getItem() giving back unexpected value (numbers) instead of the content of server asset files which we evaluate and pass to an evalStore, which is expected to be a constructor.

To recreate, use nitropack@latest in all packages & sites

This is temporarily fixed with #36 -- If encountered in your project, please update packages to their latest version:

  1. @mcflyjs/core
  2. @mcflyjs/config
ayoayco commented 7 months ago

Logging content from Storage.getItem() on production build vs on dev server...

On build: Screenshot 2024-03-10 at 18 00 52

On dev server: Screenshot 2024-03-10 at 18 03 24