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

v4 fails if tsconfig exists, but does not contain compilerOptions #93

Closed
simon-abbott opened this issue Jan 25, 2023 · 1 comment
Closed
Labels
help wanted Extra attention is needed

Comments

@simon-abbott
Copy link

When using v4.x on a project that has a tsconfig file that does not specify the "compilerOptions" key, it fails with the error "Cannot destructure property 'baseUrl' of 'options' as it is undefined" in createResolver. You should probably add a null check between these lines:

const options = config.compilerOptions
const { baseUrl, paths } = options

@aleclarson
Copy link
Owner

pr welcome

@aleclarson aleclarson added the help wanted Extra attention is needed label Mar 24, 2023
igordreher added a commit to igordreher/vite-tsconfig-paths that referenced this issue Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants