question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate imports when using `import as` syntax.

See original GitHub issue

2022-02-15_05-41 The content transformed by @vitejs/plugin-vue imported defineComponent from vue and renamed it to _defineComponent. Ideally, auto-import will not transform it. But the fact is that it will.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Zolyncommented, Mar 1, 2022
0reactions
He110te4mcommented, Mar 2, 2022

@He110te4m https://github.com/antfu/vite-plugin-inspect

Thanks. This is very helpful for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

import is duplicated when using import and import type #72
I am using this plugin in conjunction with standard and run into issue with code like this: import type {Action} from ".
Read more >
no-duplicate-imports - ESLint - Pluggable JavaScript Linter
This rule requires that all imports from a single module that can be merged exist in a single import statement.
Read more >
node.js - ES6 - Duplicate declaration on importing files
You are re-declaring the stream variable and never use it, so you can just import first file without assignment: import '.
Read more >
Issue 42564: "from .__init__ import ... - Issue Tracker
syntax imports a duplicate module ... So you can effectively have the same file imported as 2 module objects living under 2 names....
Read more >
import - JavaScript - MDN Web Docs - Mozilla
Default exports need to be imported with the corresponding default import syntax. The simplest version directly imports the default:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found