For some reason, it seems that your
/var/server/models/productModel.(mjs|js|json) file is not being found
by your application.  Make sure that it is in place on the server, and
that it is spelled (and capitalized) correctly.

-John

On Fri, Mar 20, 2020 at 1:46 AM Salomon Thomas <salo...@designfort.com> wrote:
>
> Hi,
>  I just hosted my nodejs app on aws and got this weird error,
> I rechecked the files multiple times the file is actually on this path.
>
> internal/modules/cjs/loader.js:985
>   throw err;
>   ^
>
> Error: Cannot find module '../models/productModel'
> Require stack:
> - /var/server/controllers/productController.js
> - /var/server/routes/productRouter.js
> - /var/server/app.js
> - /var/server/server.js
>
> really am stuck with this......
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules: 
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups 
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to nodejs+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/nodejs/d9225251-a003-4938-9fb2-76394f82f5eb%40googlegroups.com.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAMbK04xt6xwR1a_Bvkf3RTMJ2-F9%3DTdOstNDCEpfOJ4vCynxCw%40mail.gmail.com.

Reply via email to