-
Notifications
You must be signed in to change notification settings - Fork 93
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
Error: Vite(esbuild) unable to find matching export in PIXI.js #247
Comments
Hi @petertellgren, there seems to be some issue with how ES bundle is created by rollup, not sure how to fix it. Related discussion in #245. |
@michalochman thanks for the fast reply.. I don't thing rollup has anything to do with this but rather think it's an esbuild thing. rollup is not involved when running Vite in dev mode as far as I know, but i might be wrong.. I've posted about the issue in the vite discord help channel, perhaps some kind knowledgeable soul can help me on the right track. |
Rollup is involved in creating ES build for The app you are building is consuming this invalid ES bundle which results in the error you have included in the report. If possible, please import either UMD or CJS bundle. |
Ahh I see, sorry for being noob and not understanding all this, and thanks for laying it out for me. Any suggestion how to go about using UMD or CJS with vite and react? |
Sorry, but I have no experience with Vite. You can try importing using: This should try to load CJS bundle instead of ES bundle. |
Just wanted to say that I have the same problem with webpack and that this workaround fixed it. |
quick workaround to make it work with vite |
I have just published The only change is that I have updated rollup dependencies. It looks like rollup now leaves @kresli @guillaumebrunerie @petertellgren does it fix es bundle for you without having to resort to the workaround mentioned? Please reopen if it does not not. |
Unfortunately it did not make a difference for me, I still get the following warning (plus three other similar warnings) if I remove the
(I can’t reopen the issue, as I don’t have the button for it) |
@guillaumebrunerie a warning should be fine, previously it was an error that prevented builds completely – is the warning preventing your app from building? The |
What kind of bundler are you using @guillaumebrunerie? Would you be able to also share your config? Not the application code, just how it’s build. I’ll try to find some time to see if the warning can be dismissed somehow (maybe in the way extras are used now). |
@michalochman I'm using Webpack, the config (and the rest of the code) is available here: https://github.com/guillaumebrunerie/LD50/blob/main/webpack.common.js. |
We're using webpack, but we don't push warnings to the error overlay. Anyway, this will be completely resolved when we'll either drop support for PixiJS v4 or create separate bindings for different major PixiJS versions. Stay tuned. |
Description
Started a fresh project and installed react-pixi-fiber and tried the basic rotating bunny example.
Steps to reproduce
yarn dev
in the consoleAdditional info
Full error log
The text was updated successfully, but these errors were encountered: