<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Monique McIntyre on Medium]]></title>
        <description><![CDATA[Stories by Monique McIntyre on Medium]]></description>
        <link>https://medium.com/@ctrlaltmonique?source=rss-710ef733f4be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LazGVlvizLNARN6rEeqfow.jpeg</url>
            <title>Stories by Monique McIntyre on Medium</title>
            <link>https://medium.com/@ctrlaltmonique?source=rss-710ef733f4be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:45:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ctrlaltmonique/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Career Choice]]></title>
            <link>https://medium.com/@ctrlaltmonique/the-career-choice-0ae5cea89ef4?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ae5cea89ef4</guid>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 22:52:55 GMT</pubDate>
            <atom:updated>2026-11-23T22:52:55.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Do what you love so you never have to work.</p><p>Your career is important as is your future. Choices are irrelevant as you can do multiple.</p><p>Don’t know where to start? Pick a discipline. That’s it.</p><ol><li>Photography (Product, Management and Design)</li><li>Programming (Basics, Theory and Concept )</li><li>Design (Systems, Product, Interior, Vintage, Frontend and Web)</li><li>Architect (Technology, Software and Web)</li><li>Engineer (Thermal, Growth, Network, Software, Sound, Product, Prompt and Backend, Systems)</li><li>Developer (Product, Backend, Software and Frontend)</li><li>Economics (Strategist, Realtor and Verbal)</li><li>Voice (Motivational and Prompt)</li><li>Reading (Fiction, Self Help, Research and Herbal)</li><li>Art (Graphical and Design)</li></ol><p>That’s it.</p><p>Everything comes next. Just start. ^</p><p><a href="https://x.com/sstttaaaaarrrrr">https://x.com/sstttaaaaarrrrr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ae5cea89ef4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[https://app.notion.com/p/Skillibeng-s-flow-is-not-4216fc7312bf8097ade1db9c39e1c6d4?source=copy_link]]></title>
            <link>https://medium.com/@ctrlaltmonique/https-app-notion-com-p-skillibeng-s-flow-is-not-4216fc7312bf8097ade1db9c39e1c6d4-source-copy-link-52089e9bb0ec?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/52089e9bb0ec</guid>
            <category><![CDATA[humility]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 19:57:26 GMT</pubDate>
            <atom:updated>2026-11-23T19:57:26.429Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52089e9bb0ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bauxite is PurE]]></title>
            <link>https://medium.com/@ctrlaltmonique/bauxite-is-pure-35ae525dd0fa?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/35ae525dd0fa</guid>
            <category><![CDATA[bauxite]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 19:09:09 GMT</pubDate>
            <atom:updated>2026-11-23T19:09:09.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Smell. Smell and Senses. The world is…</p><h4>How the Body Works, in pertaining to Body Odour.</h4><ul><li>Antiperspirant/deodorant</li><li>Bauxite — cooling technologies</li></ul><h4>Reactions and Time Management; The Minimum.</h4><ul><li>You — shower &amp;/ bathe</li><li>Weight — mass — friction</li></ul><h4>Alcohol and Efficacy.</h4><ul><li>Hot air rises then travels until it encounters solid objects</li><li>Deodorant blocks</li></ul><h4>The Overup.</h4><ul><li>It’s always your fault.</li><li>The products are there to help.</li><li>The products are there.</li><li>Use things the way they were intended.</li><li>Stop lying.</li><li>Lose the weight.</li><li>Healthier is always better and has no or little relation to size.</li><li>Stop rushing; The more you rush, the more you sweat, the more the deodorant works I think.</li><li>Factual, thoughts, understanding and theory.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35ae525dd0fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[https://app.notion.com/p/bullet-proof-useRef-37c6fc7312bf8096a1e7c06733eb9906?source=copy_link]]></title>
            <link>https://medium.com/@ctrlaltmonique/https-app-notion-com-p-bullet-proof-useref-37c6fc7312bf8096a1e7c06733eb9906-source-copy-link-c30ec4dbff6d?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/c30ec4dbff6d</guid>
            <category><![CDATA[useref]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 00:01:59 GMT</pubDate>
            <atom:updated>2026-11-23T00:01:59.185Z</atom:updated>
            <content:encoded><![CDATA[<img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c30ec4dbff6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mind the Gap]]></title>
            <link>https://medium.com/@ctrlaltmonique/mind-the-gap-a1456f834a5a?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1456f834a5a</guid>
            <category><![CDATA[asynchronous-programming]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 18:55:15 GMT</pubDate>
            <atom:updated>2026-11-22T18:55:15.384Z</atom:updated>
            <content:encoded><![CDATA[<h3>Asynchrony in Javascript</h3><p>There’s a gap between when your javascript code runs and executes. When the Javascript engine has to suspend execution in order to wait for a response from a task that hasn’t yet been completed or <em>is</em> being completed.</p><p>That gap, that relationship between your code running now, and <em>later</em>, is called asynchrony. You write your code to run now, but its scheduled for execution later.</p><p>This scheduling is usually handled through callbacks. Functions you write that receive the response from an AJAX request and then act upon that response.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1456f834a5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terrorism]]></title>
            <link>https://medium.com/@ctrlaltmonique/terrorism-7ebd68047aeb?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ebd68047aeb</guid>
            <category><![CDATA[terrorism]]></category>
            <category><![CDATA[jamaica]]></category>
            <category><![CDATA[thankful]]></category>
            <category><![CDATA[manners]]></category>
            <category><![CDATA[usa]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 04:13:11 GMT</pubDate>
            <atom:updated>2026-11-22T04:15:18.148Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aV_E0ZRYVFG7Z56ESfbQsA.png" /></figure><h3>Four is always good.</h3><p>Copious</p><ul><li>knowledge is power as power is time and time reveals all truths</li><li>don’t hurt yourself</li><li>don’t avoid</li><li>don’t block</li><li>no friends unless recommended by your partner</li></ul><p>Rules</p><ul><li>[ ] be smart</li><li>[ ] be slow</li><li>[ ] be thankful</li><li>[ ] be greatful</li><li>[ ] adhere to your standards</li></ul><p>Understand.</p><ul><li>Terrorism starts from jealousy</li><li>work is the way to distract</li><li>heal</li></ul><p>Its:</p><ol><li>poor mindset</li><li>trouble with acceptance</li><li>invictus</li><li>tradition is always best</li><li>quiet</li><li>attack and avoid</li><li>absence</li><li>don’t engage</li><li>don’t prove</li><li>kill</li><li>exterminate</li><li>dont give in to pressure</li><li>switch — you cannot do it; let someone else</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ebd68047aeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[bullet proof useContext]]></title>
            <link>https://medium.com/@ctrlaltmonique/bullet-proof-usecontext-cebee20474d1?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/cebee20474d1</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[usecontext]]></category>
            <category><![CDATA[beginner-friendly]]></category>
            <category><![CDATA[react-hook]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Sat, 13 Jun 2026 00:48:18 GMT</pubDate>
            <atom:updated>2026-06-13T01:06:11.230Z</atom:updated>
            <content:encoded><![CDATA[<h4>useContext basics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4vPNjI3Zq7J-bDUgy8QGOQ.png" /><figcaption>bullet proof useContext</figcaption></figure><p><a href="https://react.dev/reference/react/useContext">useContext - React</a></p><p>This article covers</p><ul><li>what useContext is, does, and how it is used</li><li>how react determines the context value</li><li>passing data deeply within the tree</li><li>when and why components re-render</li><li>updating the context via state</li><li>performance optimizations</li><li>overriding context</li></ul><h3>what’s useContext?</h3><ul><li>useContext is a React hook that lets you read and subscribe to a context.</li><li>context lets the parent component make information available to any component in the tree below it — no matter how deep — without explicitly passing props.</li><li>call useContext at the top level of your component.</li><li>create the context outside the calling component (createContext)</li></ul><pre>const context = useContext(SomeContext)</pre><h3>parameters</h3><p>SomeContext - The context created/returned by createContext(). The context itself does not hold information. It represents the type of information you can provide or read from within the components.</p><h3>what useContext() returns</h3><ul><li>context — the context value for the calling component.</li><li>if there is no context provider then the context’s value will be the default value you provided to createContext().</li><li>the context’s value is determined by the closest SomeContext above the calling component in the component tree.</li></ul><h3>N.B. ; note well</h3><ul><li>a useContext() call in a component ignores the context providers returned in the calling component. It’s not affected by it because the corresponding context provider needs to be above the calling component in the tree.</li><li>react searches the component tree (upwards) to find the corresponding context provider. It searches the tree to find the closest SomeContext by looking for the closest context provider for the current context</li><li>react automatically re-renders components that read SomeContext if it changes.</li></ul><h3>when does the react re-render components</h3><p>whenever the context receives an updated value; whenever a particular context is updated, all the components consuming the context (useContext(..)) are updated starting from the provider that received the updated value.</p><ul><li>react automatically re-renders all the components that consume a particular context starting from the provider that received the updated value</li><li>whenever data within the context changes or the context is updated, all components that consume the context re-renders.</li></ul><p>A Context Provider re-rendering does not automatically mean every descendant must update because of Context. Descendants may re-render simply because their parent rendered. Context itself causes re-renders when the Provider’s value changes, and those updates are propagated to components consuming that context with useContext.</p><h3>updating the context via state</h3><ul><li>if you want to update the context, combine it with state</li><li>declare a state variable in the parent component and pass it down as the context value to the provider</li><li>every component that the context provider wraps will have access to that context value (which can be accessed via useContext()); (you can still access a context outside its context provider) also this bullet point is not my strongest definition so i will check back</li></ul><h3>passing data deeply within the tree</h3><ul><li>to pass context to a component wrap it or one of its parents into the corresponding context provider then access it via useContext(..) within the component</li><li>pass the data via the value prop on the context provider</li><li>if you forget the value prop, the context value will be undefined or it’ll be the context’s default value</li></ul><h3>specifying a fallback value</h3><p>you can still access the context outside its provider and retrieve/use the default value (the default value)</p><ul><li>components outside of a corresponding context provider can still access the/a context value</li><li>when you create the context you can provide a default value — createContext(defaultValue) ; createContext(null)</li><li>you can provide a more meaningful value besides null that way if you render your component outside a corresponding provider, it wont break. it can still use the default value</li><li>see the <a href="https://react.dev/reference/react/useContext#specifying-a-fallback-default-value">documentation</a> for reference</li></ul><h3>overriding context for a part of the tree</h3><p>you can override the context for a part of the tree by wrapping that part of the tree with a context provider with a different value</p><pre>&lt;ThemeContext value=&quot;dark&quot;&gt;<br>  ...<br>  &lt;ThemeContext value=&quot;light&quot;&gt;<br>    &lt;Footer /&gt;<br>  &lt;/ThemeContext&gt;<br>  ...<br>&lt;/ThemeContext&gt;</pre><h3>performance optimizations; how react optimizes re-renders when passing objects and functions as context</h3><p>useCallback and useMemo</p><ul><li>you can pass any value to your context — objects and functions</li><li>when a parent re-renders, all its children re-renders (unless rendering is skipped via memo)</li><li>when the context value of the context provider updates, components consuming the particular context (useContext(..)) will re-render</li></ul><pre>function MyApp() {<br>  const [currentUser, setCurrentUser] = useState(null);<br><br>  function login(response) {<br>      storeCredentials(response.credentials);<br>      setCurrentUser(response.user);<br>    }<br>    return (<br>      &lt;AuthContext value={{ currentUser, login }}&gt;<br>        &lt;Page /&gt;<br>      &lt;/AuthContext&gt;<br>    );<br>  }</pre><ul><li>every time MyApp re-renders, login and the context value object gets recreated which means, for every re-render, the value prop points to a new object (new reference) and so does login</li></ul><pre>const login = useCallback((response) =&gt; {<br>    storeCredentials(response.credentials);<br>    setCurrentUser(response.user);<br>  }, []);<br><br>const contextValue = useMemo(() =&gt; ({<br>    currentUser,<br>    login<br>  }), [currentUser, login]);<br><br><br>return (<br>  &lt;AuthContext value={contextValue}&gt;<br>    &lt;Page /&gt;<br>  &lt;/AuthContext&gt;<br>);</pre><ul><li>you can optimize for this with useCallback and useMemo</li><li>even if the component skip re-renders with memo, the context consuming components will still receive fresh values</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cebee20474d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[bullet proof x]]></title>
            <link>https://medium.com/@ctrlaltmonique/bullet-proof-x-df11e33ee1b5?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/df11e33ee1b5</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Sat, 13 Jun 2026 00:41:23 GMT</pubDate>
            <atom:updated>2026-06-13T01:06:51.726Z</atom:updated>
            <content:encoded><![CDATA[<h4>brief but comprehensive</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mHyVz5LOF_VbYZqzavb2fw.png" /><figcaption>buller proof x</figcaption></figure><p>this is my series where i condense information into digestible bits. i break down data heavy topics into bullet points for a mvp ready article. its the minimum information you need to know about a topic.</p><p>enjoy!</p><p><strong>articles</strong></p><ul><li><a href="https://medium.com/@ctrlaltmonique/bullet-proof-usecontext-cebee20474d1">bullet proof useContext</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df11e33ee1b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rejection Propagation in Promise Chains]]></title>
            <link>https://medium.com/@ctrlaltmonique/rejection-propagation-in-promise-chains-75ce4bbf5907?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/75ce4bbf5907</guid>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[promises]]></category>
            <category><![CDATA[promise-chain-recovery]]></category>
            <category><![CDATA[promise-chaining]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 18:42:59 GMT</pubDate>
            <atom:updated>2026-03-04T23:30:02.428Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why you need .catch() handlers</h3><p>This article will highlight</p><ul><li>why you can omit the rejection callback in .then()</li><li>why you need .catch() handlers</li><li>promise chain recovery</li></ul><blockquote><em>A rejection handler that completes normally converts the chain back into a fulfilled state. If you want your promise to stay rejected, you should throw an error or return a rejected promise in your handler.</em></blockquote><p>We already know that .then() takes in two arguments at most; a fulfillment handler and a rejection handler — both callbacks.</p><pre>const promise = new Promise((resolve, reject) =&gt; {<br>  return resolve(&quot;this too shall pass&quot;);<br>});<br><br>promise<br>  .then(fulfillmentCallback, rejectionCallback)<br>  .then(anotherFulfillmentCallback, anotherRejectionCallback);</pre><p>We attach .then() to a promise.</p><p>Let’s say there’s an initial promise (not a promise returned by a thenable).</p><p>If the initial promise rejects, this rejection is handled by the rejection callback. If the callback completes normally (didn’t throw an error or return a rejected promise) then the returned promise from .then(), settles as fulfilled instead of staying rejected. This means control will flow to subsequent .then() calls if present and the chain will be converted back into fulfilled.</p><p><em>A rejection handler that completes normally converts the chain back into a fulfilled state.</em></p><pre>promise<br>  .then(null, (error) =&gt; {<br>    console.log(&quot;Handled error:&quot;, error);<br>    // Completes normally → converts to fulfilled<br>    return &quot;recovered value&quot;;<br>  })<br>  .then((value) =&gt; {<br>    console.log(value); // &quot;recovered value&quot; <br>    // This runs because previous handler recovered<br>  });</pre><p>If however, the callback throws an error or returns a rejected promise, then the promise returned by .then() will <em>settle</em> as rejected and that state will be communicated down the chain (meaning subsequent .then() calls will be aware that the promise was rejected).</p><pre>promise<br>  .then(null, (error) =&gt; {<br>    console.log(&quot;Handled error:&quot;, error);<br>    throw new Error(&quot;Still failed!&quot;); // Stays rejected<br>  })<br>  .then((value) =&gt; {<br>    console.log(value); // Skipped<br>  })<br>  .catch((error) =&gt; {<br>    console.log(error); // Catches re-thrown error <br>  });</pre><p>So, if we want to handle an error immediately and maintain the error state down the chain we should throw an error in the rejection handler. If you don’t want to handle it immediately, you can omit the rejection handler and delegate error handling to the final .catch() handler.</p><p>This is consistent with why we’ll see .then()s being passed just one callback and a .catch() at the end of the chain.</p><pre>promise<br>  .then(fulfillmentCallback)<br>  .then(anotherFulfillmentCallback)<br>  .catch(rejectionCallback);</pre><p><strong>Further Reading</strong></p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75ce4bbf5907" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing Vite Aliasing Issues in React + TypeScript]]></title>
            <link>https://medium.com/@ctrlaltmonique/fixing-vite-aliasing-issues-in-react-typescript-b4d007ed7e9b?source=rss-710ef733f4be------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4d007ed7e9b</guid>
            <category><![CDATA[aliasing]]></category>
            <category><![CDATA[vitejs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Monique McIntyre]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 11:56:27 GMT</pubDate>
            <atom:updated>2025-03-12T11:56:27.540Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Fix Cannot Find Module Error in Vite</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D4GAWYkHTEYsAFV3JhE5gg.png" /><figcaption>Fixing Vite Aliasing Issues in React + TypeScript</figcaption></figure><p>Dealing with long, cluttered import paths in a React + TypeScript project? Aliasing is a simple way to clean them up, making your imports shorter and your code easier to read. Vite makes it easy to set up aliases for deeply nested files, but sometimes you’ll still run into the dreaded &quot;Cannot find module&quot; error. If this issue familiar, here’s how to fix it.</p><h3>The Problem</h3><p>While working on a Vite + React + Typescript project, I ran into the error Cannot find module &#39;@/components/Login.tsx&#39; or its corresponding type declarations. I found this strange considering I’d already configured my vite.config.ts file to resolve the alias.</p><p>Here’s a snippet of the error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YF99Y1ydtIMe3RNkQ0y0nw.png" /></figure><h3>The Fix</h3><p>It turns out I only did half the work. Configuring the alias in the vite.config.ts is not enough. We need to do the same in the tsconfig.app.json file. We also need to define it in tsconfig.app.json.</p><p>Vite projects typically include multiple TypeScript configuration files:</p><ul><li>tsconfig.app.json</li><li>tsconfig.json</li><li>tsconfig.node.json</li></ul><p>Vite’s latest template is working with tsconfig.app.json. tsconfig.app.json overrides or extends tsconfig.json configurations to set configuration for app-specific purposes.</p><blockquote><strong><em>Why separate TS configs?</em></strong></blockquote><blockquote><em>Vite projects require different TypeScript configurations for different environments:</em></blockquote><blockquote><em>1. Your app (</em><em>src folder) runs in the browser.</em></blockquote><blockquote><em>2. Vite itself (including its config) runs in Node.js, a separate environment with different APIs and constraints.</em></blockquote><blockquote><em>That’s why there are separate configs, each defining its own </em><em>include and </em><em>exclude sections. The &quot;master&quot; config, </em><em>tsconfig.json, ties them together.</em></blockquote><blockquote><a href="https://stackoverflow.com/a/72030801"><em>Source: StackOverflow</em></a></blockquote><p>With that in mind, let’s configure Vite and TypeScript to resolve aliases correctly.</p><p>First, update the resolve property to register your alias. If TypeScript complains about the path import, install the necessary types with: npm install -D @types/node.</p><pre>// vite.config.ts<br><br>import tailwindcss from &quot;@tailwindcss/vite&quot;;<br>import react from &quot;@vitejs/plugin-react&quot;;<br>import { URL } from &quot;node:url&quot;;<br>import path from &quot;path&quot;;<br>import { defineConfig, loadEnv } from &quot;vite&quot;;<br><br><br>export default defineConfig((env) =&gt; {<br>  // code to handle env variables goes here<br><br>  return {<br>    // other code<br><br>    plugins: [react(), tailwindcss()],<br><br>    resolve: {<br>      alias: {<br>        &quot;@&quot;: path.resolve(__dirname, &quot;./src&quot;),<br>      },<br>    },<br>  };<br>});</pre><p>Next, we need to inform the Typescript compiler about the aliases we set. Make sure the path(s) in vite.config.ts and tsconfig.app.json match.</p><pre>// tsconfig.app.json<br><br>{<br>  &quot;compilerOptions&quot;: {<br>     // other compiler options goes here<br>     <br>     &quot;paths&quot;: {<br>         &quot;@/*&quot;: [&quot;./src/*&quot;]<br>       },<br>  },<br>  &quot;include&quot;: [&quot;src&quot;]<br>}</pre><p>After making these changes, restart the TypeScript server (or your development environment) to apply the updates.</p><p>By configuring both Vite and TypeScript properly, you can eliminate the &quot;Cannot find module&quot; error and enjoy cleaner imports. 🚀 If you run into issues, double-check that your paths match and restart your TS server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4d007ed7e9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>