>
<p>Then you need to change the path to JavaScript module as follows:</p>
<pre class="code" language="csharp">CollocateJsModule = new(await JS.InvokeAsync&lt;IJSObjectReference&gt;("import", "./Pages/LoadOnDemand/CollocateJS.razor.js"));</pre>