Skip to content

Specifying npm version breaks types #378

@tennox

Description

@tennox

Normal import - working types:
Screenshot from 2023-12-18 17-54-52

I was happy to see selecting a specific npm package version works, but it shows an error & doesn't load types:
Screenshot from 2023-12-18 17-55-55

Tried different variations:

import { create } from "canvas-confetti@1.9.0";
import { create } from "https://esm.run/canvas-confetti@1.9.0";

Example notebook

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions