Skip to content
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

Webpack fails to resolve bpmn-moddle dependency in Rails 6 application with bpmn-js #3343

Open
snawar92 opened this issue Nov 21, 2024 · 1 comment
Labels

Comments

@snawar92
Copy link

snawar92 commented Nov 21, 2024

Description

When trying to use bpmn-js in a Rails 6 application with webpack, the compilation fails due to an unresolved dependency bpmn-moddle

Ruby version:3.0.0
Rails version:6.1.7
Webpacker version:5.4.4
Node version:18

Steps to Reproduce

  1. Create a new Rails application with webpack
  2. Install bpmn-js via npm/yarn
  3. Import BpmnJS in application.js
  4. Run webpack compilation

Expected Behavior

Webpack should successfully compile the application with all bpmn-js dependencies resolved.

Actual Behavior

Webpack fails to compile due to missing bpmn-moddle dependency, despite it being a sub-dependency of bpmn-js.

Error Message

ModuleNotFoundError: Module not found: Error: Can't resolve 'bpmn-moddle' in '[path]/node_modules/bpmn-js/lib'

Attempted Solutions

  • Verified that bpmn-moddle is present in node_modules
  • Confirmed the setup works in a standard Node.js application
@snawar92 snawar92 added the bug label Nov 21, 2024
@snawar92
Copy link
Author

@excid3 can you help me on above ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant