The reason that no error isn’t display here is that technically the cell isn’t actually erroring; the cell runs successfully, but the top-level variable geo is a rejected promise.
A more idiomatic way to write this cell would be a static import declaration like so:
import * as geo from "npm:geotoolbox";
If you typo nom: instead of npm:, you’ll see this helpful error in the cell:
TypeError: Failed to fetch dynamically imported module: nom:geotoolbox
In the future, as has been mentioned in other threads (1, 2, 3), we plan on implementing automatic inspection of top-level variables. This is similar to the inspector in Old Observable (and for expression cells in New Observable), except that it will support vanilla JavaScript cells that can declare multiple top-level variables. This would show you that geo errors even in the case that the cell declaring geo itself (trivially) “succeeds” despite the dynamic import failing (and if the import succeeds, you’d be able to inspect the resulting Module).