Skip to content

fix: use standalone isLocalTemplate instead of thisArg.isLocalTemplate (#2018)#2133

Open
useye wants to merge 1 commit intoasyncapi:masterfrom
useye:fix/issue-2018-isLocalTemplate
Open

fix: use standalone isLocalTemplate instead of thisArg.isLocalTemplate (#2018)#2133
useye wants to merge 1 commit intoasyncapi:masterfrom
useye:fix/issue-2018-isLocalTemplate

Conversation

@useye
Copy link
Copy Markdown

@useye useye commented Apr 22, 2026

Summary

Fixed a bug where thisArg.isLocalTemplate(...) was incorrectly called instead of the standalone isLocalTemplate(...) function at line 198 of src/utils/generate/watcher.ts.

The isLocalTemplate function is defined at line 11 as an exported standalone function, not as a method on thisArg. This fix corrects the incorrect reference.

Related Issue

Fixes #2018

Bounty

  • Label: bounty
  • Type: bounty/coding
  • Complexity: bounty/medium

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 22, 2026

⚠️ No Changeset found

Latest commit: 78fa362

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[BUG] Watch mode crashes with TypeError: thisArg.isLocalTemplate is not a function

1 participant