Skip to content

Mutable cells in classic notebooks with initial value of null cause error #21

@mootari

Description

@mootari

If a classic notebook contains a Mutable

mutable foo = null

then importing the cell into a notebook via

import {foo} from "observable:…"

and displaying it via

foo

fails with the error

RuntimeError: null is not an object (evaluating '_.generator')

Minimal repro

<!doctype html>
<notebook>
  <script type="module">
    import {foo} from "observable:d/3a120539ecaa0449@70"
  </script>
  <script type="module">
    foo
  </script>
</notebook>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions