-
Notifications
You must be signed in to change notification settings - Fork 146
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
vscode_deno shows errors when working with typescript files in node #39
Comments
Is there a way to manually enable/disable this extension for a directory/file? A lot of people would like to use Deno in an existing Node.js/webpack project. |
@egoist Deno and Node.js are too different, there is no very good way to support both. But we are also trying some way, such as: vs code config for extension{
"deno.include": ["src/deno/**/*"],
"deno.exclude": ["node_modules", "**/*.spec.ts"]
} tsconfig for typescript-deno-plugin{
"compilerOptions": {
"plugins": [
{
"name": "typescript-deno-plugin",
"include": ["src/deno/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
]
},
"include": ["src/node/**/*"]
} |
@justjavac awesome, that's exactly what I want 👏 |
Extension is disabled by default now. For other node compat issues refer to #314 |
This works for me: {
"deno.enable": true,
"deno.enablePaths": ["supabase/functions/"],
}
|
After installing vscode_deno, all of my node typescript files had errors like
Even though express was installed and in my node_modules folder. Uninstalling vscode_deno fixes the problem.
The text was updated successfully, but these errors were encountered: