deno - [错误]:“typeof Deno”类型上不存在属性“openPlugin”
问题描述
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
服务器项目时出现这样的错误帮助我任何人对此有任何想法。谢谢你
解决方案
你必须使用--unstable
标志运行 Deno。
您可以检查openPlugin
当前是不稳定的 API。
有关稳定性的更多信息:
从 Deno 1.0.0 开始,Deno 命名空间 API 是稳定的。这意味着我们将努力使在 1.0.0 下工作的代码在未来的版本中继续工作。
但是,并非 Deno 的所有功能都已准备好投入生产。尚未准备好的功能,因为它们仍处于草稿阶段,被锁定在
--unstable
命令行标志后面。
推荐阅读
- c# - 如何在 asp.net web api 应用程序中使用 log4net.elmah.io 包在 elmah.io 中设置 URL、状态代码和版本等参数?
- ios - 我想从数组中的数组中搜索?看例子
- c# - ASP.NET Core 在给定时间删除缓存条目
- css - 手风琴内的引导下拉菜单
- weaviate - 使用自定义上下文运行 weaviate
- regex - 匹配具有可变参数和可选后缀的字符串也与一个
- python - 如何从任何单词中删除“ing”
- c# - 如何在运行时从控件中克隆值更改事件
- ios - How to decrypt a very long string of AES 256 (CBC) encryption in Flutter?
- laravel - Generate Artisan command instead of "php artisan serve"