[错误]:属性 'openPlugin' 在类型 'typeof Deno' 上不存在

[ERROR]: Property 'openPlugin' does not exist on type 'typeof Deno'

error: TS2339 [ERROR]: Property 'openPlugin' does not exist on type 'typeof Deno'.
  return Deno.openPlugin(localPath);
              ~~~~~~~~~~
    at https://deno.land/x/plugin_prepare@v0.6.0/mod.ts:64:15

服务器项目时出现这样的错误 帮助我任何人对此有任何想法。 谢谢

你必须 运行 Deno 带有 --unstable 标志。

您可以检查 openPlugin 当前是一个不稳定的 API。


关于稳定性的更多信息here

As of Deno 1.0.0, the Deno namespace APIs are stable. That means we will strive to make code working under 1.0.0 continue to work in future versions.

However, not all of Deno's features are ready for production yet. Features which are not ready, because they are still in draft phase, are locked behind the --unstable command line flag.