The git ignore feature is not identifying the node modules file, preventing me from pushing the file to git due to exceeding the size limit

When trying to push my project to Github, I encountered an issue with the gitignore file not tracking my node modules as intended. Despite including my node_modules folder in the .gitignore, I received an error message stating that a file within node_modules exceeded the GitHub file size limit.

remote: error: File node_modules/@next/swc-win32-x64-msvc/next-swc.win32-x64-msvc.node is 117.24 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.

I am seeking assistance to resolve this issue and successfully push my project to Github.

Answer №1

Reduce the size of your document by zipping it before uploading.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Retrieve the nearest record in a CSV file based on my current latitude and longitude

My primary objective with this node project is to retrieve the city I am currently in, or the nearest one if that data is not available. To start, I have created a notepad csv file which includes fields such as city, country, latitude, and longitude. You ...

Angular rest call is returning an undefined response object attribute

When attempting to retrieve the attribute of a response object, it is returning as "undefined". var app = angular.module('angularjs-starter', []); app.controller('MainCtrl', function($scope, $http) { $scope.addNewChoice = functio ...

Implementation of forms

I'm working on a form that contains text inputs with the names "user_name," "mob," and "email." Within this form, there is also a link labeled Plans and a submit button. If a user clicks on the link, I want all the values from the input fields within ...

Combining React state value with an HTML tag would be a great way

I am facing an issue while trying to concatenate the previous value with new data fetched from an API using a loop. Instead of getting the desired output, I see something like this: [object Object][object Object],[object Object][object Object] Here is ...

How can I view call logs on an Android device using Cordova?

Looking to access recent call logs using Cordova? Unfortunately, there is no official plugin available for that. However, there is still hope with a custom plugin created by someone else. You can find the plugin here. The only issue is that the creator of ...

A guide on utilizing should.js to verify object equality when dealing with a property value that is NaN

It appears that there may be a bug in should.js related to the special value NaN, which is not equal to itself. ({ a: 1, c: 3, b: 2, d: NaN }).should.eql({ a: 1, c: 3, b: 2, d: NaN }); Despite the expectation that this tes ...

JQuery was partially activated

Having just started using JQuery, I wanted to create a button that can dynamically change the colors defined in the CSS between blue and red when clicked, as well as updating the text displayed on the button. The draggable() function is working properly, ...

I am experiencing an issue where the button I place inside a material-ui table is unresponsive to clicks

Here is the structure of my table: <TableContainer component={Paper} style={{height: "40vh", width: "90vh"}}> <Table size="small" sx={{ minWidth: 200 }}> <TableHea ...

Personalized URL Paths in Next.js Using Next.js Router

Currently, I am developing a Next.js application with a specific app directory layout. Within my project, there is a page named itemDetail which presents the detailed information of a particular item. Yet, I aim to personalize the URL format so it appears ...

Encountering issues with React app compilation on Linux VM, whereas it runs smoothly on Windows due to a specific error message regarding the 'browser' field lacking a valid alias configuration

I am facing an issue while trying to deploy my React app on a Linux VM. The application works perfectly on Windows, leading me to believe that the problem might be related to relative paths. I have not set up any aliases or module-resolver configurations. ...

Issue: Encounter of an unexpected token (Please ensure that plugins are installed to import files that are not JavaScript) while using the rollup vue package

I am working on creating a Vue component library, but I encountered an error with my type checking. I attempted to update TypeScript as mentioned here, but it did not resolve the issue. Here is a snippet of my code and `package.json` file. My component cod ...

Extract the entire div including all its elements and then transmit it using the PHP mail function

Currently, I am developing a feature that allows users to send an email. The email should include only one div from the page which contains elements added using the jQuery drag and clone function. I am unsure how to copy the entire div along with its child ...

Initial loading of Nextjs SSG can be sluggish

After deploying my Nextjs app on Vercel, I noticed that the response time of SSG pages utilizing getStaticProps is slower during the initial page load, but subsequent loads are instant. This behavior has me puzzled and wondering why this delay occurs. I a ...

The conditional statement of either/or

I need to create a button that changes based on whether checkboxes are checked. If none are checked, I want to show a disabled button. If one or more are checked, I want to display a different button. JavaScript $("#checkAll").change(function ( ...

Loading several items using identical function

Seeking a way to efficiently load multiple models and access them outside the loader, I aim to adhere to the DRY (Don't Repeat Yourself) principle by creating a single function for loading and returning the object. function loadObject(obj, mtl) { ...

Creating an Elastic Beanstalk instance from an s3 bucket using the aws-sdk tutorial

I am currently facing some difficulties in deploying an elastic beanstalk instance using the AWS JavaScript SDK. My goal is to have the source code come from an S3 bucket. While I know this can be done through the web interface, I am struggling to figure o ...

Learn how to utilize JavaScript produced by the `webpack output library` in a `nodejs` application

I'm currently utilizing webpack to bundle my JavaScript into a library that serves two purposes: one for browser usage and the other for integration into Node.js applications. Below is a snippet of my webpack configuration: output: { filename: ...

Is there a way to display multiple images in a JSON message object?

If you're looking for a fun way to generate random dog images, then check out my DogAPI image generator! Simply enter a number between 1-50 into the form text box, hit send, and watch as it displays that amount of random dog photos. I'm almost t ...

JavaScript and AJAX: Dynamically Create URLs

I don't have any experience with web development, so could you please explain in detail? If my questions are unclear, feel free to ask for more information. Imagine I have a webpage with the following URL: www.mycompany.com/category1 This page has ...

How to effectively filter arrays using Angular.js

One array of objects that I have on hand looks like this: var arr = [{id:1, name: 'frank', type: 'great'}, {id:2, name: 'john', type: 'good'}, {id:3, name: 'mark', type: 'great'}, {id:4, name: &a ...