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

Can't build custom components in production mode #11

Closed
dongcp87 opened this issue Jan 25, 2024 · 2 comments
Closed

Can't build custom components in production mode #11

dongcp87 opened this issue Jan 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dongcp87
Copy link

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

  • Host Chrome
  • OS: Macos
  • Library version: 1.6.4
@dongcp87 dongcp87 added the bug Something isn't working label Jan 25, 2024
@maximryzhov
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants