After one sets up phoenix as described in the instruction, ng serve or its alias npm start - works. But ng build will not run falling with multiple errors around require("...").
I used custom builder in Angular.json to setup webpack build. You may look here as an example. For me it was OK as I added some webpack plugins anyway.
But this fix not trivial and may be difficult for HENP people not used to configuring frontend stacks. May there be easier fix?
I believe it could be addressed as a separate issue. Described in the updated set-up instructions
After one sets up phoenix as described in the instruction,
ng serve
or its aliasnpm start
- works. Butng build
will not run falling with multiple errors aroundrequire("...")
.I used custom builder in Angular.json to setup webpack build. You may look here as an example. For me it was OK as I added some webpack plugins anyway.
But this fix not trivial and may be difficult for HENP people not used to configuring frontend stacks. May there be easier fix?