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

Relative pathing throwing error inside modules #256

Open
LucaCoDevil opened this issue Dec 12, 2023 · 0 comments
Open

Relative pathing throwing error inside modules #256

LucaCoDevil opened this issue Dec 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@LucaCoDevil
Copy link

When linking to a file from a module, such as an HTML file containing a macro. Referencing the file using relative pathing throws an error when "HubSpot: HubL Linting" is turned on in the settings. The error thrown is a "could not resolve function" when calling a macro as well as the warning "template cannot be found".

This seems to just be an issue with the linting as pushing the module up to HS works perfectly and the macro is displaying and working correctly inside the module, no errors are thrown inside HS itself, only locally using the extension.

To Reproduce:

  1. Add an empty template file inside a theme and create a macro
  2. Inside a module, import that file using relative pathing
  3. Make sure this is done in a local environment and that the setting HubSpot: HubL Linting is turned on
@LucaCoDevil LucaCoDevil added the bug Something isn't working label Dec 12, 2023
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