Skip to content

fix(docs): add build path to nodePaths for colocated hooks#6658

Open
benvp wants to merge 1 commit intophoenixframework:mainfrom
benvp:docs/custom-build-colocated-hooks
Open

fix(docs): add build path to nodePaths for colocated hooks#6658
benvp wants to merge 1 commit intophoenixframework:mainfrom
benvp:docs/custom-build-colocated-hooks

Conversation

@benvp
Copy link
Copy Markdown

@benvp benvp commented Apr 17, 2026

Since the introduction of colocated hooks in v1.8 the example for a custom build.js file requires the build path to be present as well. If it is not present, the build of the assets will fail with a resolve error Could not resolve "phoenix-colocated/<app>"

The default :esbuild config already includes the build path by using Mix.project.build_path()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant