Skip to content

deno no quickfix for npm packages imported without vite.config.mjs file? #17539

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

Closed
dong-lufei opened this issue Jan 26, 2023 · 1 comment
Closed
Labels
duplicate a duplicate of another issue

Comments

@dong-lufei
Copy link

deno has syntax hints and quick fixes in these files. After the fix, the syntax wavy line is gone, and the version number is automatically added

import { Application, Router } from "https://deno.land/x/oak/mod.ts";
import { Application, Router } from "https://deno.land/x/[email protected]/mod.ts";

But the packages imported in the vite.config.mjs file don't have the functionality of this quick-fix version

import { defineConfig } from "npm:vite"
import vue from "npm:@vitejs/plugin-vue"
import "npm:vue"
import "npm:vue-router"

export default defineConfig({
  plugins: [vue()],
})

@dsherret dsherret changed the title deno no quickfix for packages imported without vite.config.mjs file? deno no quickfix for npm packages imported without vite.config.mjs file? Jan 26, 2023
@dsherret dsherret added the duplicate a duplicate of another issue label Jan 26, 2023
@dsherret
Copy link
Member

This is #16479. Follow that issue for updates. #15811 might also be of interest.

@dsherret dsherret closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants