Owaiz_Yusufi's avatar

Could not resolve entry module. Why I am facing this issue?

I have search a lot but did not understand what's going wrong and what's the issue

Could not resolve entry module (resources/src/layouts/loader.js).
error during build:
Error: Could not resolve entry module (resources/src/layouts/loader.js).
    at error (file:///K:/Work%20place/[XXXXX]/laravel/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
    at ModuleLoader.loadEntryModule (file:///K:/Work%20place/[XXXXX]/laravel/node_modules/rollup/dist/es/shared/rollup.js:22369:20)
    at async Promise.all (index 2)
0 likes
2 replies
Owaiz_Yusufi's avatar
Owaiz_Yusufi
OP
Best Answer
Level 1

Fix the issue

The issue is because the path of the JS file is incorrect

prexma's avatar

Hi are you using Docker? Try: npx vite build instead of: sail npx vite build

Please or to participate in this conversation.