Troubleshooting esbuild Issues with Node.js Package in Phoenix Framework

162
clicks
Troubleshooting esbuild Issues with Node.js Package in Phoenix Framework
The author, WoT_Abridged, faced challenges when incorporating the TipTap package, a text editor, into a Phoenix Framework project. Despite following instructions intended for Vanilla JavaScript environments, local functionality was validated; problems, however, emerged during deployment via `fly deploy` resulting in build errors. The author meticulously verified the package installation, esbuild configurations, and proper import statements in `app.js`. Nevertheless, the deployment process failed, presumably due to path misconfiguration related to the `node_modules` directory. Attempts to rectify the issue through relative paths and marking the path as external according to esbuild's suggestions were unsuccessful. WoT_Abridged is considering another attempt at marking TipTap as external but is concerned about potential ramifications.

© HashMerge 2024