Closed mootari closed 2 years ago
Describe the bug
Any imported cell name can be prefixed with viewof or mutable without generating an error. The runtime will simply import the unprefixed cell.
viewof
mutable
To Reproduce
Run the following code:
// Note: "cars" exists, "viewof cars" does not. import {viewof cars} from '@observablehq/demo'
cars
Expected behavior
Screenshot
This is the expected behavior. When you import viewof cars, you are implicitly also importing cars, but there’s no requirement on how the two are related.
viewof cars
Describe the bug
Any imported cell name can be prefixed with
viewof
ormutable
without generating an error. The runtime will simply import the unprefixed cell.To Reproduce
Run the following code:
Expected behavior
cars
is greyed out and unlinked in the Inspector representation of the import cell.cars
results in a RuntimeError.Screenshot