Error with react-quill and quill-mentions only in Production build
Unanswered
American Crocodile posted this in #help-forum
American CrocodileOP
I am implemented Apryse WebViewer (https://docs.apryse.com/documentation/web/get-started/) in my Nextjs project. It subsequently uses react-quill and then quill-mentions. Only in production build am I encountering an error (traced back through the WebViewer to Quill code). In local/dev builds it works as expected.
What could be happening during a Nextjs production build (next build) that could be triggering a new javascript error? Could dependencies be stripped out unnecssarily? Can I remove tree shaking or other options in the build, so I can get as close to my dev build as possible?
What could be happening during a Nextjs production build (next build) that could be triggering a new javascript error? Could dependencies be stripped out unnecssarily? Can I remove tree shaking or other options in the build, so I can get as close to my dev build as possible?