-
Notifications
You must be signed in to change notification settings - Fork 79
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
TSConfig path aliases are not respected #186
Comments
Can you provide a link to a reproducible repository? |
Sure, it's this repo: https://github.com/Sv443/BetterYTM-Plugin-Template |
Is your computer system Windows? I find some similar issues. Adding a line of code should fix this issue. |
You're right, it works when I use WSL2, but it still doesn't explain why it worked with another vite plugin for building userscripts. |
Yup that worked, thanks a bunch! |
becase It has some limitations, vite build your code as so |
Okay so I've just discovered a new problem that's probably related to this. When importing a namespaced library that starts with an |
you can test it just change |
Perfect, much thanks again! |
I'm using the plugin vite-tsconfig-paths to make vite use the path aliases defined in
compilerOptions.paths
intsconfig.json
With this vite userscript plugin it worked fine, but after switching to your plugin I get the error
[vite]: Rollup failed to resolve import "@utils/plugin.js"
I'm using the aliased imports like this:
Click to expand my vite.config.ts
The text was updated successfully, but these errors were encountered: