Giter Club home page Giter Club logo

Comments (14)

sachinjogi avatar sachinjogi commented on May 14, 2024

@jkaw were you able to fix it? If yes, can you upload the package.json

from wedding-website.

jkaw avatar jkaw commented on May 14, 2024

@sachinjogi the package json is correct. You just need to delete all folders in the node_modules folder except for the ones I listed from your fork.

In your local you might want to keep the gulp related ones if you plan on changing any js/css as those will need to be minimized.

from wedding-website.

sachinjogi avatar sachinjogi commented on May 14, 2024

Right, actually it wasn't the issue with the package.json, author had pushed node modules to the repo which had some erroneous files. I jusr reverted it to an older commit and it fixed it.

from wedding-website.

rampatra avatar rampatra commented on May 14, 2024

@sachinjogi I recently updated older dependency versions to their latest ones. This shouldn't give you any issues. Make sure you run: npm install and gulp.

from wedding-website.

jkaw avatar jkaw commented on May 14, 2024

@rampatra can you remove the extra node folders from your master? It will prevent this from being able to deploy on pages otherwise. You can change the README to run the npm commands. Even your github pages deploy action failed with the latest commit.

from wedding-website.

rampatra avatar rampatra commented on May 14, 2024

@jkaw it's deleted now. Users have to do npm install before running the website from now on.

from wedding-website.

jkaw avatar jkaw commented on May 14, 2024

@rampatra if you delete the entire folder, you will lose a few node js libraries that the site needs to function properly. Check wedding.rampatra.com to see whats broken on your demo now. You need to keep the three folders I mentioned.

from wedding-website.

rampatra avatar rampatra commented on May 14, 2024

@jkaw I do not understand. Why doesn't it work on github pages? Locally, this works fine. npm install command downloads all dependencies including the three that you have listed here and I see no issue.

from wedding-website.

rampatra avatar rampatra commented on May 14, 2024

I tried even defining my own custom workflow file with build commands but still no luck.

Here is the workflow file for reference: https://github.com/rampatra/wedding-website/actions/runs/4298555939/workflow

from wedding-website.

jkaw avatar jkaw commented on May 14, 2024

The problem is that the node_modules folder has too many unnecessary folders. The only ones you need for the website to function properly are:
animate.css
font-awesome
waypoints

The rest of them are not needed for the website to run. The extras that were in the node_modules folder caused the deployment tar to exceed the size limit for github pages. I will submit a merge request to restore things and you can take a look.

from wedding-website.

jkaw avatar jkaw commented on May 14, 2024

check pull request #77.

In my personal fork I did this and my github pages works.

from wedding-website.

rampatra avatar rampatra commented on May 14, 2024

It is now fixed. I have gone with another approach (I think it's a bit cleaner than including node_modules folder). You can check out the latest index.html file.

Also, after seeing my recent changes carefully, I think my custom workflow (https://github.com/rampatra/wedding-website/actions/runs/4298555939/workflow) isn't complete. It did build fine but wasn't deploying the latest changes from master branch. If anyone has time to look into this new workflow thing then node_modules should work fine even on github pages. There won't be any issues because of the large size.

So, to conclude, as I couldn't find time to fix the workflow approach, I added a fallback mechanism in index.html, and therefore github pages now work fine.

from wedding-website.

rampatra avatar rampatra commented on May 14, 2024

I updated my workflow file with deploy instructions but I am seeing other issues now - https://github.com/rampatra/wedding-website/blob/master/.github/workflows/npm-gulp.yml

I will have to debug it later. But for now, the fallback technique in index.html is fine to make the website work on github pages.

from wedding-website.

rampatra avatar rampatra commented on May 14, 2024

I have closed this issue as the website works fine on Gihub Pages and created a new ticket to fix Workflow - #78

from wedding-website.

Related Issues (13)

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.