Getting error in importing files in javascript [closed]

node:internal/modules/esm/resolve:265
throw new ERR_MODULE_NOT_FOUND(
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/mansavigarg/Coding/Chai_or_Code_BE/BE-Project/src/constants' imported from /Users/mansavigarg/Coding/Chai_or_Code_BE/BE-Project/src/index.js
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:933:10)
    at defaultResolve (node:internal/modules/esm/resolve:1157:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:87:39)
    at link (node:internal/modules/esm/module_job:86:36) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/mansavigarg/Coding/Chai_or_Code_BE/BE-Project/src/constants'
}

Getting this error, tried everthing

Tried Chatgpt also, corrected file name to constants to constants.js as well but noting