Comments (14)
@jkaw were you able to fix it? If yes, can you upload the package.json
from wedding-website.
@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.
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.
@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.
@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.
@jkaw it's deleted now. Users have to do npm install
before running the website from now on.
from wedding-website.
@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.
@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.
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.
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.
check pull request #77.
In my personal fork I did this and my github pages works.
from wedding-website.
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.
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.
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)
- Map becomes unresponsive at some places
- License: MIT instead of GPL? HOT 1
- add node_module folder in gitignore file HOT 3
- Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (83) HOT 2
- GIMP error on psd file opening HOT 1
- GPL-3.0 license does not allow for "private" website HOT 9
- Problem of "CROS" HOT 1
- Update bootstrap CSS and JS versions HOT 3
- Potential security issue
- Email backend won't work HOT 1
- Move to the new GitHub Workflow to deploy the website to github pages
- Multi-language support HOT 2
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 wedding-website.