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

Fixed imports of vite.config.extension.ts from projects #9622

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

barankyle
Copy link
Member

Summary

Path that was being used for fs.existsSync was not correct, missing .ts on the end, so no extensions were being found or applied.

Import of extensions from correct staticPath triggers a TypeError: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"

This is a known issue with vite importing from files in other packages in a monorepo: vitejs/vite#5370

For now, using the workaround of importing via the relative path. Switching to bun will apparently solve this.

References

closes #insert number here

QA Steps

Path that was being used for fs.existsSync was not correct, missing .ts on
the end, so no extensions were being found or applied.

Import of extensions from correct staticPath triggers a TypeError:
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"

This is a known issue with vite importing from files in other packages
in a monorepo: vitejs/vite#5370

For now, using the workaround of importing via the relative path. Switching
to bun will apparently solve this.
@HexaField HexaField merged commit c01356a into dev Jan 17, 2024
13 checks passed
@HexaField HexaField deleted the fix-vite-config-extension branch January 17, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants