You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deno run --unstable --allow-net --allow-read --allow-write --importmap=import_map.json mod.ts
报错:
error: TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.
import { SearchWord } from "./types.ts";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///Users/gpdi/Documents/huqi/deno/jjc/zhihu-trending-top-search/utils.ts:1:1
TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.
import { SearchWord, TopSearch } from "./types.ts";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///Users/gpdi/Documents/huqi/deno/jjc/zhihu-trending-top-search/mod.ts:7:1
The text was updated successfully, but these errors were encountered:
可能需要在import 类型的时候添加type关键字。
本地运行
报错:
The text was updated successfully, but these errors were encountered: