Skip to content

VSCode extension doesn't locate node_modules for custom checks package #1170

@andershagbard

Description

@andershagbard

Describe the bug

The VSCode extension doesn't look in node_modules when searching for extended packages.

Works fine when running shopify theme check in the terminal. It also works when using an absolute path.

Source

extends:
  - 'theme-check:recommended'
  - '@grafikr/theme-check-extension/recommended.yml'

Expected behaviour
I expect the Theme Check extension to work in VSCode.

Actual behaviour
It sends this error:

[Error - 15.03.21] Request textDocument/documentLink failed.
  Message: Request textDocument/documentLink failed with message: Cannot find module '@grafikr/theme-check-extension/recommended.yml'
  Code: -32603 

Debugging information

  • MacOS 15.7.4
  • Shopify Liquid v3.11.1 (VSCode extension)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions