-
Notifications
You must be signed in to change notification settings - Fork 99
Wrong publish folder for new application
builder in Angular V17
#173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Using the standalone command, it is possible to use the npx angular-cli-ghpages --dir=dist/[PROJECT_NAME]/browser See reference here: https://github.com/angular-schule/angular-cli-ghpages/blob/main/docs/README_standalone.md#usage-with-angular-cli-6-or-higher |
Thank you for your solution, @jfcere. It works well for me. However, I'm still curious about why they decided not to present the |
The builder for However, this came from a time where For now, we recommend using the standalone command as described above by @jfcere . |
My personal favorite is to make the dist path/dir mandatory for the builder options. This way we can ensure that people think about adjusting it when they change the output path. |
Thanks for your detailed reply, @fmalcher. |
We definitely need "--dir" back! @fmalcher That's a nice idea, if we make it mandatory but also provide a solution that hopefully works out of the box in 90% of the cases! We should also talk about the separate language folders that are created when i18n is used... 🫤 |
Fixed in See #179 |
Hello @JohannesHoppe, thanks for fixing this issue. However, would you mind modifying all dependency versions to be compatible with version 17.X? The problem I encountered is as follows:
|
You have to use the exact tag instead of "latest" 😊 |
Which is super confusing, because on npm latest is already You have two options
OR
By the way, I messed up |
It works well in my repo🥳. However I also met the compatibility problem after using Could you change the version of the peer dependency |
I just tried this in three of my own projects and a fresh new Angular 17.1 workspace and had none of those issues. |
It seems like I accidentally added |
Looks like the angularfire team has now changed their setup like this: only dependencies and devDependencies, no peerDependencies any longer. And they skipped all previous version, too. So I think I will try this out too: FROM
TO
I will push a new beta.2 version very soon. |
angular-cli-ghpages@2.0.0-beta.2 is on Github now, see #180 |
@JohannesHoppe, could you please publish angular-cli-ghpages@2.0.0-beta.2 to npm? Alternatively, should I install it from the source code? |
I'm pretty much sure it's already published! 🙂 |
Sorry, I only checked the releases of this repo but not the npm package. |
🎉 |
Angular V17 now use the
application
builder by default (ref) even if we don't use SSR. This results in the output files, includingindex.html
, be placed in${outputPath}/browser
instead of${outputPath}
, which breaks the deployment ofangular-cli-ghpages
.I propose two potential solutions:
Add a deployment options to specify a relative path to
outputPath
. e.g.ng deploy --path=/browser
, which publishes folder${outputPath}/browser
.If
build.builder
inangular.json
is set to "@angular-devkit/build-angular:application", then publishes folder${outputPath}/browser
.The text was updated successfully, but these errors were encountered: