Giter Site home page Giter Site logo

Comments (10)

EdricChan03 avatar EdricChan03 commented on June 12, 2024 2

@mammadkoma I've taken a look at your GitHub repository and have discovered a potential cause of the issue: your repository is named as "Angular15" (notice the capitalisation), but you've configured your --base-href to use "angular15".

Attempting to visit https://mammadkoma.github.io/Angular15/ does yield the HTML as expected, but the site breaks with 404 errors due to the issue mentioned above:

Screenshot of Firefox DevTools Console showing 404 errors on the Angular15 subpage

Hope this helps!

from angular-cli-ghpages.

JohannesHoppe avatar JohannesHoppe commented on June 12, 2024 1

Thank you for pointing this out. There are no breaking changes. I will quickly create a new release today.

from angular-cli-ghpages.

JohannesHoppe avatar JohannesHoppe commented on June 12, 2024 1

🙏 here is the new relase: https://github.com/angular-schule/angular-cli-ghpages/releases/tag/v1.0.5

from angular-cli-ghpages.

mammadkoma avatar mammadkoma commented on June 12, 2024 1

Finally worked Thanks
image

from angular-cli-ghpages.

EdricChan03 avatar EdricChan03 commented on June 12, 2024

Thanks for the quick response! I've just attempted to update to 1.0.4 and I've noticed that it still produces a peer dependencies error:

❯ npm i angular-cli-ghpages@latest
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: <project>@<version>
npm ERR! Found: @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/architect
npm ERR!   dev @angular-devkit/architect@"^0.1500.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular-devkit/architect@">= 0.900 < 0.1500" from [email protected]
npm ERR! node_modules/angular-cli-ghpages
npm ERR!   dev angular-cli-ghpages@"1.0.4" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Looking at the commit that added Angular v15 support shows that the version range for @angular-devkit/architect wasn't bumped as well.

EDIT: I've since opened a PR (#159) that should fix this regression

from angular-cli-ghpages.

mammadkoma avatar mammadkoma commented on June 12, 2024

I created a new repository in github
ng add Angular15
cd Angular15
git init
git remote add origin https://github.com/mammadkoma/Angular15.git
ng add angular-cli-ghpages
ng deploy --repo=https://github.com/mammadkoma/Angular15.git

It shows this message : 🌟 Successfully published via angular-cli-ghpages! Have a nice day!
but it doesn't work in my github pages: https://mammadkoma.github.io/Angular15/

from angular-cli-ghpages.

fmalcher avatar fmalcher commented on June 12, 2024

@mammadkoma In your case, the deployment worked fine, so your problem doesn't seem to be related to the library.
If you want to deploy to a subfolder, you need to use the --base-href option as described here: https://github.com/angular-schule/angular-cli-ghpages#--base-href-

from angular-cli-ghpages.

mammadkoma avatar mammadkoma commented on June 12, 2024

I don't want to deploy to a subfolder. I executed the command in your gif in the npm site.
I tested this command : ng deploy --base-href=/angular15/
But not work
image
image

from angular-cli-ghpages.

JohannesHoppe avatar JohannesHoppe commented on June 12, 2024

The tool is working as expected. This is not a support channel for individual projects.

from angular-cli-ghpages.

mammadkoma avatar mammadkoma commented on June 12, 2024

This is not individual project , it is created only by ng new angular15 command like your npm documents. Please create a new angular 15 project and deploy to your github. If it works show us the steps. Thank you

from angular-cli-ghpages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.