beaker icon indicating copy to clipboard operation
beaker copied to clipboard

Mounting a `.ui` folder into another hyperdrive not working as expected

Open tomsansome opened this issue 2 years ago • 0 comments

Describe the Bug I have 2 Hyperdrives:

  • Drive 1: A drive with a .ui folder at the root which will be my template
  • Drive 2: A drive which I will run mount $template-hyperdrive /.ui on to mount that UI folder into this drive

When I mount the .ui folder from Drive 1 into Drive 2, the mounted .ui folder does not override all page-serving as expected.

To Reproduce

  1. Visit this link for Drive 1: hyper://bb2921f4517abd9b2caccb1d312a94c87c71a0effa1a43a56b8ba34ead2d99fc/template-test.html.
  2. Observe .ui folder. Note: inside .ui/ui.js we have a setup function which is similar to the suggested code in the frontend UI docs. See screenshot 1 below 👇
  3. Visit this link for Drive 2: hyper://45256fc59850959a7d59e9beedc16e382f719d2a0ebcc501a6d6a4fa9811bf1a/.
  4. Observe that index.html does not have a surrounding template from the mounted .ui folder as expected.

Expected Behavior

Drive 2 should use the .ui folder to override all page-serving. Drive 2 index.html should have the styling from the mounted .ui folder.

Screenshots

  • Screenshot 1 Screenshot 2021-08-13 at 14 17 32

Environment

  • OS: Mac OSX Catalina 10.15.7
  • Beaker Version: 1.1.0

🌟 Appreciate any help here, thank you very much! 🌟

tomsansome avatar Aug 13 '21 13:08 tomsansome