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

Unexpected Error: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'? #17

Closed
JounQin opened this issue Jun 24, 2022 · 4 comments · Fixed by #18
Labels

Comments

@JounQin
Copy link
Contributor

JounQin commented Jun 24, 2022

https://github.com/vitejs/vite/runs/7047103190?check_suite_focus=true#step:10:93

reproduction: https://github.com/JounQin/vite/tree/chore/tsx_esno

run pnpm i && pnpm build

Maybe related to #16

@privatenumber
Copy link
Owner

Please provide a minimal reproduction and explain why this is a bug.

pnpm run build runs so many commands I have to investigate which one is causing it and which tsconfig.json is problematic.

@JounQin
Copy link
Contributor Author

JounQin commented Jun 24, 2022

if (!substitution.startsWith('./') && !baseUrl) {

@privatenumber

I believe it should handle ../ at the same time/

@JounQin
Copy link
Contributor Author

JounQin commented Jun 24, 2022

@privatenumber Please help to review #18

@privatenumber
Copy link
Owner

🎉 This issue has been resolved in version 4.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants