β οΈ This post links to an external website. β οΈ
When trying to install JavaScript dependencies for Phoenix without npm, a user attempted to add
phoenix-custom-event-hookas a git dependency inmix.exs. Despite successfully cloning the dependency withmix deps.get, an error arose when importing it inapp.js, indicating that the path could not be resolved. This error highlights the challenge of integrating non-npm packages into Phoenix applications.Community members discussed potential solutions, including the absence of necessary
dist/*files in the GitHub repository and the suggestion to obtain an ESM copy. This scenario reveals the complexities developers face when managing JavaScript dependencies through Elixirβs build tools and underscores the need for proper file availability in npm packages.
continue reading onelixirforum.com
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.