Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lstat directory error on Panel when /src/host/[appName] does not exist #33

Open
Inventsable opened this issue Oct 16, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Inventsable
Copy link
Member

Unintentional oversight. The Panel component is meant to search for scripts in specified locations on mount cycle and due to bombino's legacy file structure, assumes a panel will explicitly have /src/host/[appName] without nullifying the process when this doesn't exist.

This only affects panels which are made from scratch (importing brutalism into a non-bombino template) but should be fixed so I'm documenting it for later:

Object.fs.lstatSync > Panel.isFolder > Panel.loadScriptPath > mounted() cycle.

@Inventsable Inventsable added the bug Something isn't working label Oct 16, 2020
@Inventsable Inventsable self-assigned this Oct 16, 2020
@Inventsable
Copy link
Member Author

Inventsable commented Oct 16, 2020

Just in case any one runs into this and is reading from the future, the workaround for this is to either:

    <Panel script-path="./host.jsx">
      <router-view />
    </Panel>

Since file paths within props are relative to the root, the file is located at the panel root: someFolder/YourPanelRoot/host.jsx.

  • Create the file manually, as something like /src/host/ILST/host.jsx, even if this file is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant