Journey to The Center Of Node_modules

Journey to The Center Of Node_modules

As frontend developers, we usually treat node_modules as this huge magical black-box where you sacrifice mega or gigabytes of your hard disk space in the hope of getting more productive by adding random people code to yours until it work.

As frontend developers, we usually treat node_modules as this huge magical black-box where you sacrifice mega or gigabytes of your hard disk space in the hope of getting more productive by adding random people code to yours until it work. Crazy but it actually works… until it doesn’t!

This is a story about how I managed to get in and out of node_modules in one piece.

Just another normal working day, working on a bunch of features and issues and trying to be as productive as possible.

Ticket done, what's next? Oh nice, an easy one: security guys are not happy that yarn audit is failing. Time for some upgrades, yay!

I don’t know about you, but I learn by doing. If you are like me then I have good news for you: you can follow this journey on your own machine.

I tried to reproduce the issue using as little code as possible to mimic our complex real-world micro-frontend-ish monorepo situation where I had this problem. Unless you already tried all of the techniques I mentioned I strongly recommend to clone this repo and follow step by step: clone this repo, open it on vscode and let’s go. I will be waiting right here…

note: I assume you use vscode, but it’s not a requirement. Who am I to start an editor war!

javascript react

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

How native is React Native? | React Native vs Native App Development

Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.

How to Select and Hire the Best React JS and React Native Developers?

Hire React JS developer from Technoduce, we have a team of experienced and expert Angular JS developer. With our hire React JS developer, you have complete control over the technical resource throughout the development process.

Increase Performance of React Applications Via Array JavaScript Methods

Increase Performance of React Applications Via Array JavaScript Methods. We will create a simple event management application in the react to add, update, and delete an event.

Top VSCode Extensions for React, React Native, JavaScript and Productivity

Bunch of VSCode Extensions that improve quality of your coding time no matter what stack you are using. In this post, you'll see Top VSCode Extensions for React, React Native, JavaScript and Productivity

React cloneElement: A Better Way to Build a Component API Props in ES6 Javascript and Ts

Using the React cloneElement is a better way to build a component API props in ES6 Javascript and Typescript. Here's a tutorial on how to do so.