vue GlobalComponents cause use @types/node Blob instead of dom Blob?
See original GitHub issueNo idea why @types/node got injected.
pnpm 6.32.1, monorepo
➜ npm run lint:vuetsc
> @adtalos/dashboard@0.0.0 lint:vuetsc
> vue-tsc --noEmit
src/components/dynamic_material/download.ts:39:37 - error TS2551: Property 'pipeTo' does not exist on type 'ReadableStream'. Did you mean 'pipe'?
39 await new Blob([buffer]).stream().pipeTo(writable);
~~~~~~
../node_modules/.pnpm/@types+node@17.0.21/node_modules/@types/node/globals.d.ts:197:9
197 pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'pipe' is declared here.
Found 1 error.
tsconfig.json
{
"extends": "../tsconfig.json",
"compilerOptions": {
"lib": ["esnext", "dom"],
"types": ["vite/client", "wicg-file-system-access", "unplugin-icons/types/vue"],
"baseUrl": "./"
}
},
"include": [
".eslintrc.js",
"*.js",
"**/*.ts",
"**/*.vue"
]
}
…/tsconfig.json
{
"compilerOptions": {
"types": [],
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"skipLibCheck": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true
}
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
Vue 3 - "Failed to resolve component" with global components
To register components globally, use app.component in your top-level code: main.js import { createApp } from 'vue'; import App from '.
Read more >Components Basics - Vue.js
Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. It's common for an...
Read more >Testing Vue.js components with Vue Test Utils - LogRocket Blog
This guide showcases the benefits of testing your Vue.js components using Vue Test Utils and includes some real-world examples.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is not volar’s bug
element-plus/lib/index.d.ts
export * from 'element-plus/es/components';
element-plus/es/components/index.d.ts
export * from './upload';
element-plus/lib/components/upload/index.d.ts
/// <reference types="node" />
You should create a issue in element-plus and tell them to remove all
/// <reference types="node" />
in packagesworkaround, if anyone enccounter this issue.