Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
muhammedMoussa opened this issue May 29, 2020 · 1 comment
Closed

Comments

@muhammedMoussa
Copy link

I have this config

import { init, MongoClient } from "https://deno.land/x/mongo@v0.6.0/mod.ts";
await init();
const client = new MongoClient();
client.connectWithUri("mongodb://localhost:27017");
const db = client.database("deno");
export default db;

get error

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
[denon] app crashed - waiting for file changes before starting ...

I'm on

deno 1.0.2 
v8 8.4.300 
typescript 3.9.2
@Pandawan
Copy link

Plugins are an unstable feature, you need to add --unstable and --allow-plugin to allow Deno to load plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants