Skip to content

"Missing handlers in WASM" error is not triggered for "templates" section #2065

@ksvirsky

Description

@ksvirsky

Which packages are impacted by your issue?

@graphprotocol/graph-ts

Describe the issue

There is a "Missing handlers in WASM" error is issued when no handler is found in the code for corresponding "handler" property in subgraph.yaml. That is expected behavior.
But the error is not triggered if missing handler is declared in "templates" section of subgraph.yaml.

Reproduction

https://github.com/ksvirsky/the-graph-missing-handler/blob/main/subgraph.yaml

Steps to Reproduce the Bug or Issue

  1. clone repo.
  2. yarn
  3. yarn codegen && yarn build
  4. The error "Missing handlers in WASM" should be triggered for line 28 in subgraph.yaml.
  5. Commend out this line, uncomment the line 27.
  6. Now the error should be shown for line 52 ('templates' section), but it isn't.

Expected behavior

The error should be triggered for both 'dataSources' and 'templates' sections.

Screenshots or Videos

No response

Platform

  • OS: all
  • NodeJS: any
  • "@graphprotocol/graph-cli": "0.97.1",
    "@graphprotocol/graph-ts": "0.38.1"

Subgraph Manifest

https://github.com/ksvirsky/the-graph-missing-handler/blob/main/subgraph.yaml

Subgraph GraphQL Schema

No response

Additional context

No response

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