Skip to content

Assignments to a tag variable must be within a script or function #2914

@vwong

Description

@vwong

Marko Version: 6.0.95

Details

The following compiles/executes fine in marko@6.0.94 but broke in marko@6.0.95 during the build/compile stage.

client import debounce from "debounce";

<let/searchTerm="">

<input onInput=debounce((event) => {
  searchTerm = event.target.value;
}, 300)>

with the error message Assignments to a tag variable must be within a script or function.

Expected Behavior

It compiles/executes fine - or offer an alternative way to express the same thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:unverified bugA bug report that has not been verified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions