<?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 Cyril Kunjumon on Medium]]></title>
        <description><![CDATA[Stories by Cyril Kunjumon on Medium]]></description>
        <link>https://medium.com/@cyrilkunjumon8800?source=rss-78bfd641c8ad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LDGadxMsnjEtBd02</url>
            <title>Stories by Cyril Kunjumon on Medium</title>
            <link>https://medium.com/@cyrilkunjumon8800?source=rss-78bfd641c8ad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:25:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyrilkunjumon8800/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[Error: Cannot find module ‘node:url’]]></title>
            <link>https://medium.com/@cyrilkunjumon8800/error-cannot-find-module-node-url-f425d7225818?source=rss-78bfd641c8ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/f425d7225818</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[npm]]></category>
            <dc:creator><![CDATA[Cyril Kunjumon]]></dc:creator>
            <pubDate>Tue, 04 Jun 2024 10:47:02 GMT</pubDate>
            <atom:updated>2024-06-04T13:30:39.116Z</atom:updated>
            <content:encoded><![CDATA[<p>It was a normal day at office when i pushed my code to my remote repo and initiated by build via Jenkins. Surprisingly, the build failed with the following error</p><blockquote>Error: Cannot find module ‘node:url’</blockquote><p>I thought how can a commit where i just changed my favicon cause a build error all of a sudden when it was working a day before.</p><p>Then I started looking for the possible issues and found the following which i wanted to share so that anyone else who is facing the same can find it helpful.</p><p>I found out that the error was originating from the <strong>webpack.config.js</strong> file that is used by inside <strong>react-scripts</strong>. This is because webpack uses multiple dependencies out of which one of the child dependency is <a href="https://www.npmjs.com/package/ajv"><strong>ajv</strong></a>(a JSON schema validator used by numerous node packages)<strong> </strong>that had recently released an update that was causing the issue.</p><p>To be precise the commit that causes this error was <a href="https://github.com/ajv-validator/ajv/pull/2415">https://github.com/ajv-validator/ajv/pull/2415</a>, and this is because <strong>ajv</strong> has switched from uri-js to fast-uri package and this new package was causing this error to occur because it was using require(&quot;node:url&quot;) insted of require(&quot;url&quot;) and this was causing the builds to fail.</p><p>The maintainers of the repo have acknowledged the issue and informed that they will revert the commit and fix this issue <a href="https://github.com/ajv-validator/ajv/pull/2415#issuecomment-2146101638">https://github.com/ajv-validator/ajv/pull/2415#issuecomment-2146101638</a>.</p><p>Edit: People who want a quick fix for this can add &quot;ajv&quot;: &quot;8.14.0&quot; to the package.json of your repo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f425d7225818" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>