ITADN

Specifying npm version breaks types

#378Opentennox 创建于 2023-12-18
T
tennoxcommented
Normal import - working types: ![Screenshot from 2023-12-18 17-54-52](https://github.com/TypeCellOS/TypeCell/assets/2084639/7777aea2-218d-468e-bc8a-f02f518ea978) 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](https://github.com/TypeCellOS/TypeCell/assets/2084639/5df32d17-414b-4819-bce1-ccc3e52e7d43) Tried different variations: ```js import { create } from "canvas-confetti@1.9.0"; import { create } from "https://esm.run/canvas-confetti@1.9.0"; ``` ### [Example notebook](https://www.typecell.org/@tennox/public/npm-version-test~dM8FefdRVYYqa)
2 条评论