# Error: NoScriptProvided

No script was provided to the `execute-script` SSE event. A script to execute must be provided.

Example:

```
event: datastar-execute-script
data: script console.log('Hello, world!')
```

See the docs on the [`datastar-execute-script`](/reference/attribute_plugins#data-datastar-execute-script) event.