Hey there can anyone help take a look why am I getting this error [ERR_MODULE_NOT_FOUND]: Cannot find module '/sandbox/src/app' imported from /sandbox/src/server.js it’s a basic node app/express app that I’m trying to start using es modules but not sure what I’m doing wrong with the import… here is a codesandbox link sleepy-bhabha-zj7cnu - CodeSandbox
I can make it with require but I’m trying to use es modules import instead and I keep getting this error
I figured it out… for anyone having the same issue in the future using es modules in node you have to give the file extensions in your import statement since I’ve been working for a while with frontend frameworks like react and angular I’ve gotten used to not specifying the file extensions in my import statements… sandbox link provided has been updated