Closed BehzadBakhshayesh closed 3 weeks ago
This looks more like a bundler issue. Can you reproduce this problem in a codesandbox?
Error doesn't appear on codesandbox but is present in my setup. Could you please review my repository? (both codes are identical...)
@BehzadBakhshayesh Please ensure you also recognize JavaScript files with a mjs
or cjs
extension; otherwise you'll force your bundler to use incompatible files in an ESM
or legacy setup.
To test if things work, try to simplify your setup to just use min-dash
.
As you're using just plain create-react-app
this should work out of the box.
I run your code locally, and the error is thrown from the @bpmn-io/extract-process-variables
module. For a reason still unknown to me, the require var minDash = require('min-dash');
is resolved as a path to a file:
@barmac cjs
is not properly recognized as a JS asset, hence the static resolution to a file, cf. https://github.com/bpmn-io/bpmn-js-properties-panel/issues/1058#issuecomment-2176142055.
I believe this is tracked upstream via https://github.com/facebook/create-react-app/issues/12700.
@BehzadBakhshayesh There is nothing we can do to remedy this. create-react-app
simply has to fix things
@nikku @barmac Thank you.
Bug Description
Hello. I created a React component using the "bpmn-js", "@bpmn-io/properties-panel", and "bpmn-js-properties-panel" packages. An error emerges when utilizing the CamundaPlatformPropertiesProviderModule, displaying: TypeError: minDash.isArray is not a function. It seems that this issue stems from the min-dash version, and updating it should resolve the error.
Reproduction Steps
I'm using the following code and try to bundle the application using
create-react-app
:Then reload the application.
Expected Outcome
Kindly address this issue.
Environment