Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: Error when removing baseUrl - unstable-core-do-not-import type issueΒ #6998

@kangkangowo

Description

@kangkangowo

Provide environment information

src/middleware/jwt/index.ts:11:14 - error TS2742: The inferred type of 'jwtMiddleware' cannot be named without a reference to '../../../node_modules/@trpc/server/dist/unstable-core-do-not-import.d-1RewV6pM.mjs'. This is likely not portable. A type annotation is necessary.

Describe the bug

Hi there,

I encountered an issue when I removed the baseUrl configuration. After removing baseUrl, I get the following TypeScript error

It seems like the issue is related to unstable-core-do-not-import. I am currently using tsgolint for linting, and tsgo no longer supports baseUrl, which might be the root cause of this issue.

Steps to reproduce:

Remove the baseUrl configuration from tsconfig.json.

Link to reproduction

none

To reproduce

remove tsconfig baseUrl

Additional information

No response

πŸ‘¨β€πŸ‘§β€πŸ‘¦ Contributing

  • πŸ™‹β€β™‚οΈ Yes, I'd be down to file a PR fixing this bug!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions