Comments (10)
@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:
Hope this helps!
from angular-cli-ghpages.
Thank you for pointing this out. There are no breaking changes. I will quickly create a new release today.
from angular-cli-ghpages.
🙏 here is the new relase: https://github.com/angular-schule/angular-cli-ghpages/releases/tag/v1.0.5
from angular-cli-ghpages.
from angular-cli-ghpages.
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.
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.
@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.
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
from angular-cli-ghpages.
The tool is working as expected. This is not a support channel for individual projects.
from angular-cli-ghpages.
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)
- 404.html is not copied when using angular localize HOT 1
- Wrong default value for `cname` in `schema.json` HOT 1
- Error: Cannot find module 'fs-extra' when using `npx angular-cli-ghpages`
- ng add throws error (An unhandled exception occurred: Cannot find module 'angular-cli-ghpages/ng-add') HOT 3
- build: Node.js 12 actions are deprecated HOT 1
- Should a `.nojekyll` file be generated by default? HOT 2
- ng deploy ---- How to switch GitHub account by using ng deploy by angular-cli-ghpages? HOT 5
- Cant install the package due to node vrtsion restriction HOT 2
- index.html could not be copied to 404.html, cli: 1.0.5, angular cli: 14.2.5 HOT 3
- Locale - How to deploy en and de version of my app?
- CORS error when requesting dist files from goDaddy. HOT 7
- Angular 16 support HOT 1
- ghpages not deploying HOT 4
- Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID HOT 4
- Wrong publish folder for new `application` builder in Angular V17 HOT 19
- rimraf: missing path when ngh --dir=dist/path HOT 1
- Not working with a new Angular V17 project HOT 3
- Github Pages: Configuration to avoid initial 404 Network Response HOT 6
- Browser folder error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli-ghpages.