Skip to content

Relative pathing throwing error inside modules #256

@LucaCoDevil

Description

@LucaCoDevil

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions