DEV Community

Cover image for Funny Developing Mistakes I Wasted Hours on
Shrihari Mohan
Shrihari Mohan

Posted on • Updated on

Funny Developing Mistakes I Wasted Hours on

Using Routing Module Instead Of Module

Because there were no erros in the console and whatever in the component file doesn't render.

const routes: Routes = [
  {
    path: 'items',
    loadChildren: () => import('./comps/CompsRoutingModule.module').then(m => m.CompsRoutingModule)
  }
// That should have been just module.
];
Enter fullscreen mode Exit fullscreen mode

Same Variable Names Different Files

Sometimes we may introduce the same function or variable name in a different context. This can cause VS Code to mess up the imports we were looking for, especially if we didn't know that the name had already been used.

yarn dev vs yarn start

yarn start doesn't refresh changes on file save. I sometimes accidently select start.

node

Using Wrong Environments in Postman

I just hit some post request to production without realizing for 10 mins.
Postman


Try Our new product for free!

DocsAI - Create AI support agents with your documents in the most affordable price, starts at 0$. Don't need a bot , but need ai help on your docs just upload and start chating !

Using for a company ? Check out our pricing Just contact me for personalized pricing !

docsAi


Top comments (0)