bpmn-io / form-js-examples

A collection of form-js examples.
23 stars 15 forks source link

Can't build custom components in production mode #11

Closed dongcp87 closed 4 months ago

dongcp87 commented 5 months ago

Describe the Bug

Can't build custom components in production mode

Steps to Reproduce

  1. open webpack.config.js in custom-components
  2. change mode to production
  3. npm start
  4. Uncaught Error: No provider for "e"! (Resolving: rangeField -> e)

Environment

maximryzhov commented 3 months ago

I can confirm this is still happening with library version == 1.8.3. Error occurs in production mode, only if optimization.minimize set to true in webpack.conf.js

dongcp87 commented 3 months ago

@maximryzhov custom-components/app/extension/render/index.js add: CustomFormFields.$inject = ['formFields'];