You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While generating routes for Koa I'm getting the following error while building with tsc or running with ts-node.
error TS1371: This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.
import * as KoaRouter from '@koa/router';
Sorting
I'm submitting a ...
bug report
feature request
support request
I confirm that I
used the search to make sure that a similar issue hasn't already been submit
Expected Behavior
I would expect a type import as generated in the line above so it would be:
importtype*asKoaRouterfrom'@koa/router';
Current Behavior
Currently it's generating:
import*asKoaRouterfrom'@koa/router';
Context (Environment)
Version of the library: 4.1.3
Version of NodeJS: v18.12.1
Confirm you were using yarn not npm: [x]
Breaking change?
Should not be a breaking change
The text was updated successfully, but these errors were encountered:
While generating routes for Koa I'm getting the following error while building with
tsc
or running withts-node
.Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
I would expect a type import as generated in the line above so it would be:
Current Behavior
Currently it's generating:
Context (Environment)
Version of the library: 4.1.3
Version of NodeJS: v18.12.1
Breaking change?
Should not be a breaking change
The text was updated successfully, but these errors were encountered: