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

[BUG] Uncaught (in promise) Error: Directory does not exist... #202

Closed
Shadow-355 opened this issue Oct 8, 2023 · 6 comments
Closed

[BUG] Uncaught (in promise) Error: Directory does not exist... #202

Shadow-355 opened this issue Oct 8, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Shadow-355
Copy link

Describe the bug
The module doesn't appear to be running properly at all and is tossing an uncaught error in the console.
image

Steps to reproduce

  1. Launch Game
  2. Press F12 to open the console.
  3. Click on any actor or token.
  4. See error

Versions:

  • Token Action HUD Core: v1.4.20
  • Token Action HUD System: D&D 5E v1.4.13
  • System: DnD5E v2.3.1
  • Foundry VTT: v11.313
  • Browser: Brave Version 1.58.137 Cromium: 117.0.5938.153 (Official Build) (64-bit)

Additional context
I have already attempted Foundry with only the Core, 5E, and socketlib modules installed, but the problem still persists... I'm unsure what is causing the issue. I also attempted to use a different browser, Edge, but this also didn't work. My final attempt to fix the issue was to reinstall the modules, which didn't seem to fix it either.

I've attached the console log from that session in case that helps to diagnose the issue. The error occurs in the console at line 169.
ActionHud Error.log

@Shadow-355 Shadow-355 added the bug Something isn't working label Oct 8, 2023
@madseumas
Copy link

For a workaround you can try going to Foundry's settings menu (Game Settings->Configure Settings), then Token Action HUD Core, then Layouts, and "Reset All Layouts". I think I had that happen to me before and was able to get rid of the error that way.

@Shadow-355
Copy link
Author

I'll give that a try and report back, thanks!

@Shadow-355
Copy link
Author

That didn't seem to work, I received this error when I attempted that. The HUD still didn't display.
image

@Shadow-355
Copy link
Author

I managed to hotfix the issue. By creating the missing folder directories, mainly the "/Data/modules/token-action-hud-core/storage/vonkora/actor" and "/Data/modules/token-action-hud-core/storage/vonkora/user" folders, the module began working again without issue.

While this doesn't fix the odd underlying issue of the problem occurring in the first place, at least the issue can be fixed by creating those folders manually. I wonder if those folders can be automatically created to replace them in the event they are deleted in the future.

@Larkinabout
Copy link
Owner

While this doesn't fix the odd underlying issue of the problem occurring in the first place, at least the issue can be fixed by creating those folders manually. I wonder if those folders can be automatically created to replace them in the event they are deleted in the future.

That does already happen on reload:
token-action-hud-core-directory-creation

@Shadow-355
Copy link
Author

Strange. They weren't automatically created in my case, I'm unsure why that occurred. On the bright side, it's now working without issue now that the folders are present.

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

3 participants