[bug] flags non-type-only imported type as unknown import
See original GitHub issueVersion
4.5.11
Reproduction link
https://github.com/vegerot/vue-cli-6320
https://github.com/vuejs/vue-cli/issues/3145#issuecomment-785268090
Environment info
Environment Info:
System:
OS: macOS 11.3
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 15.10.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 7.6.0 - /usr/local/bin/npm
Browsers:
Chrome: 89.0.4389.47
Edge: Not Found
Firefox: 78.8.0
Safari: 14.1
npmPackages:
@types/vue-moment: 4.0.2 => 4.0.2
@vue/babel-helper-vue-jsx-merge-props: 1.2.1
@vue/babel-helper-vue-transform-on: 1.0.2
@vue/babel-plugin-jsx: 1.0.3
@vue/babel-plugin-transform-vue-jsx: 1.2.1
@vue/babel-preset-app: 4.5.11
@vue/babel-preset-jsx: 1.2.4
@vue/babel-sugar-composition-api-inject-h: 1.2.1
@vue/babel-sugar-composition-api-render-instance: 1.2.4
@vue/babel-sugar-functional-vue: 1.2.2
@vue/babel-sugar-inject-h: 1.2.2
@vue/babel-sugar-v-model: 1.2.3
@vue/babel-sugar-v-on: 1.2.3
@vue/cli-overlay: 4.5.11
@vue/cli-plugin-babel: 4.5.11 => 4.5.11
@vue/cli-plugin-e2e-cypress: 4.5.11 => 4.5.11
@vue/cli-plugin-eslint: 4.5.11 => 4.5.11
@vue/cli-plugin-pwa: 4.5.11 => 4.5.11
@vue/cli-plugin-router: 4.5.11 => 4.5.11
@vue/cli-plugin-typescript: 4.5.11 => 4.5.11
@vue/cli-plugin-unit-jest: 4.5.11 => 4.5.11
@vue/cli-plugin-vuex: 4.5.11 => 4.5.11
@vue/cli-service: 4.5.11 => 4.5.11
@vue/cli-shared-utils: 4.5.11
@vue/component-compiler-utils: 3.2.0
@vue/eslint-config-standard: 6.0.0
@vue/eslint-config-typescript: 7.0.0
@vue/preload-webpack-plugin: 1.1.2
@vue/test-utils: 1.1.3
@vue/web-component-wrapper: 1.3.0
eslint-plugin-vue: 7.6.0
jest-serializer-vue: 2.0.2
js-cookie-vue: 1.0.8 => 1.0.8
typescript: 4.1.5 => 4.1.5 (3.9.9)
vue: 2.6.12 => 2.6.12
vue-class-component: 7.2.6 => 7.2.6
vue-cli-plugin-moment: 0.1.1 => 0.1.1
vue-cli-plugin-vuetify: 2.1.0 => 2.1.0
vue-eslint-parser: 7.5.0
vue-hot-reload-api: 2.3.4
vue-jest: 3.0.7
vue-loader: 15.9.6 (16.1.2)
vue-moment: 4.1.0 => 4.1.0
vue-property-decorator: 9.1.2 => 9.1.2
vue-router: 3.5.1 => 3.5.1
vue-style-loader: 4.1.2
vue-template-compiler: 2.6.12 => 2.6.12
vue-template-es2015-compiler: 1.9.1
vuedraggable: ^2.24.3 => 2.24.3
vuetify: 2.4.4 => 2.4.4
vuex: 3.6.2 => 3.6.2
vuex-class: 0.3.2 => 0.3.2
npmGlobalPackages:
@vue/cli: 4.5.11
Steps to reproduce
Copy/paste the code from https://github.com/vuejs/vue-cli/issues/3145#issuecomment-785268090
Run vue-cli-service serve
What is expected?
Get no warnings in the console
What is actually happening?
Please read https://github.com/typescript-eslint/typescript-eslint/issues/3108#issuecomment-785414796 and https://github.com/vuejs/vue-cli/issues/3145#issuecomment-785268090
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Unknown Type even though Im importing - Stack Overflow
Detailed explanation: Xcode displays the error in "BoxSprite.h", but the error actually occurs when "ArrowWrapper.m" is compiled: "ArrowWrapper.
Read more >Import Vie.TerrasseWild Republic in Frog Tube_ Nature
bug] flags non-type-only imported type as unknown import · Issue #6320 · vuejs/vue-cli · GitHub bug] flags non-type-only imported type as unknown import ......
Read more >@happykit/flags - npm
Absolute Imports; Setting up the Environment Variable ... import type { Configuration } from "@happykit/flags/config"; // You can replace ...
Read more >Announcing TypeScript 4.8 RC - Microsoft Developer Blogs
For example, unknown is close in spirit to the union type {} | null ... This behavior was incorrect, because named imports and...
Read more >Generator Flags for the Protoc Compiler · Twirp
proto files to determine the import paths for imported message types. For example: option go_package = "github.com/twitchtv/thisisanexample";. The import_prefix ...
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 FreeTop 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
Top GitHub Comments
Link to reproduction repo: https://github.com/vegerot/vue-cli-6320
@LinusBorg should I make a new issue, or continue using this one?
@LinusBorg @ktsn any thoughts on how we should proceed?
I find the
"export 'ActionMethod' was not found in"
warnings very annoying (getting literally hundreds of them), and thetypescript-eslint
errors are preventing us from releasing.Should I bring this issue somewhere else? How can I help unblock my team?