Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolving path alias in tsconfig #1225

Closed
3 tasks done
ryoppippi opened this issue Aug 15, 2024 · 2 comments
Closed
3 tasks done

resolving path alias in tsconfig #1225

ryoppippi opened this issue Aug 15, 2024 · 2 comments

Comments

@ryoppippi
Copy link
Contributor

Feature Request

Transfer from issue in unplutin-typia by @asnaeb
This issue happens because typia compiler doesn't resolve path alias in tsconfig.

===

unplugin-typia version

0.6.18

What platform is your computer?

Darwin 23.5.0 arm64 arm

Describe the bug

When importing types from non relative paths, such types are parsed as any. Example of non relative paths are paths relative to tsconfig.compilerOptions.baseUrl or paths mapped from tsconfig.compilerOptions.paths.

Adding resolve.alias to vite.config.ts to map the paths in vite doesn't help.

Reproduction

https://github.com/asnaeb/vite-unplugin-typia-repro

run with npm run dev and check the console.

Validations

@ryoppippi
Copy link
Contributor Author

If typia will not implement this, I'll try to do it in unplugin-typia, but in this case, we need to wait for this issue

@ryoppippi
Copy link
Contributor Author

He said it is not typia's problem.

@ryoppippi ryoppippi closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant