-
Notifications
You must be signed in to change notification settings - Fork 134
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
[vite] - No matching export for import pathToFileUrl #232
Comments
You need to configure your build tool to use the browser build. |
Hi @jdmorlan, I know it's been a while when you asked this question but I'm facing the same issue. Have you ever figured out how to properly configure Vite to make it work with Awilix? I know that Vite is using esbuild under the hood and esbuild has a platform option which can be set to Only workaround I found so far is to directly import the browser bundle in my code. Typescript then complains but at least it is still getting built. |
I've faced similar issue. Added alias in my
Maybe it should be noted in the docs... |
I would think it's something that should be fixed on Vite's side? Webpack resolves the browser build by default just fine. |
Ah, I think I got it. Found this open issue in Vite repo: vitejs/vite#7576. Looks like the problem is the same. |
I'm using ViteJS as the build tool for a React application. When I try to run the vite dev server I get the error referenced in the title above. I'm not very well versed in the workings of awilix, but attempted to Google for that error. I was able to find a couple of things about
loadModules
and Windows tests, but didn't seem to match this issue.I setup a repo that isolates vite, awilix and jishida/react-awilix. I'm more than willing to do more investigating, but I'm kind of stuck with what to attempt next. Any help or advice would be greatly appreciated.
Error Message
The text was updated successfully, but these errors were encountered: