-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Module not found: Can't resolve 'poly-decomp' #981
Comments
Thanks for reporting, can you give more information on the environment you're running this in? Any build tools, node version, npm version, browser etc. and what program specifically is the error message coming from? |
I think the error message is from typescript. It is a .ts file. I am using create-react-app build and node ver 14.15.1. and I'm using pnpm ver 5.18.3 instead of npm. When I do yarn start and then change the .ts file it says:
It seems like matter.js is still functioning anyway. |
I am also getting this error message |
@treardon17 could you please also provide the above requested info? Thanks! |
@liabru sure thing! sorry I didn't include more details to begin with... node: v12.15.0 Minimum code to reproduce:
Causes this warning during my build process:
Doing |
@treardon17 thanks what build tools are you using here?
|
@liabru ahh that makes sense. I'm working on a package that's being consumed by another application. The package is built with rollup |
@treardon17 can you tell which program the error message is originating from specifically? I'm using Webpack and it seems to be fine, my guess is rollup? Also is this with |
@liabru the error is coming from the webpack build, but I'm wondering if the issue is in the output of the rollup build... and yes, this is with |
To be clear for anyone still seeing this issue you can avoid the warning for the moment by just installing the module via The problem seems to be external - build tools don't appear to handle conditional So unfortunately there may need to be a breaking change coming (which I've been trying to avoid): removing this |
@liabru it seems like having users pass the dependency would be a good direction. It would make the |
As of release The There is no longer any |
Could you explain how to set the poly-decomp dependency, |
I am seeing this message in the debug output when using matter-js:
This is the minimal code to reproduce:
The text was updated successfully, but these errors were encountered: