function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vijendhar k 31vijendhar k 31 

LWR running issue in nodejs : 404: Could not find module entry with specifier "@lwrjs/app-service/Home/module/esm"

Hello everyone, 

I have to try to call the lwc component in nodeJS, i am getting the 404: Could not find module entry with specifier "@lwrjs/app-service/Home/module/esm" exception , 
    at async LwrViewRegistry.renderView (file:///C:/Users/vijen/OneDrive/Desktop/Demo/LWRNodeServer/StaticSite/node_modules/@lwrjs/view-registry/build/es/index.js:220:33)
LWR Diagnostic Error: 404: Could not find module entry with specifier "@lwrjs/app-service/Home/module/esm"

[
  {
    description: {
      category: 'lwrUnresolvable/module',
      advice: [],
      message: '404: Could not find module entry with specifier "@lwrjs/app-service/Home/module/esm"'
    }
  }
]
DiagnosticsError: 404: Could not find module entry with specifier "@lwrjs/app-service/Home/module/esm"

Support blog and video 
https://developer.salesforce.com/docs/platform/lwr/guide/lwr-get-started.html
https://www.youtube.com/watch?v=V6BdUSOtU2c&t=1330s 

Code  lwc : <c-counter></c-counter> --> called in help.html
Then i am getting below error.

 
VinayVinay (Salesforce Developers) 
Hi Vijendhar,

Does below reference help?

https://www.greytrix.com/blogs/sagex3/2021/10/28/how-to-solve-404-cannot-find-module-error-on-node-js-v12/

Thanks,
vijendhar k 31vijendhar k 31
@vinay, thanks for reply, but its not solved the issue.
Edna BrownEdna Brown
Here are a few suggestions to help troubleshoot the issue:
Check Module Installation: Ensure that you have installed all the required modules and dependencies for the LWR framework. Verify that the "@lwrjs/app-service" module is installed and up to date. You can use a package manager like npm to install/update the module if needed.
Verify Module Import: Double-check the import statement for the "@lwrjs/app-service/Home/module/esm" module in your Node.js code. Make sure the import path is correct and matches the actual location of the module. Ensure that the specified module exists in the installed package.
Validate File Structure: Review the file structure of your project to ensure that the necessary files and modules are placed in the correct locations. Verify that the file containing the "@lwrjs/app-service/Home/module/esm" module is present in the expected directory.
Verify Module Compatibility: Check the compatibility of the "@lwrjs/app-service" module with your version of Node.js and the LWR framework. Ensure that you are using compatible versions of all the required components to avoid any compatibility issues.
Review Documentation and Resources: Refer to the official documentation and resources provided by Salesforce for the LWR framework. Check for any specific configuration steps or updates related to the "@lwrjs/app-service" module that could help resolve the issue marykayintouch (https://www.marykayintouch.website/).
Martin Messina 7Martin Messina 7
Remove moduleProviders array property from lwr.config.json file.