You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Cannot find module 'ms-identity-javascript-nodejs-tutorial\1-Authentication\1-sign-in\App\node_modules\msal-node-wrapper\dist\index.js'. Please verify that the package.json has a valid "main" entry
#130
Open
sarathys opened this issue
Dec 26, 2024
· 0 comments
Error: Cannot find module 'C:\git\ms-identity-javascript-nodejs-tutorial\1-Authentication\1-sign-in\App\node_modules\msal-node-wrapper\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:494:19)
at Function._findPath (node:internal/modules/cjs/loader:795:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1235:27)
at Function._load (node:internal/modules/cjs/loader:1075:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:138:16)
at Object. (C:\git\ms-identity-javascript-nodejs-tutorial\1-Authentication\1-sign-in\App\app.js:9:32)
at Module._compile (node:internal/modules/cjs/loader:1565:14) {
code: 'MODULE_NOT_FOUND',
path: '\\?\C:\git\ms-identity-javascript-nodejs-tutorial\1-Authentication\1-sign-in\App\node_modules\msal-node-wrapper\package.json',
requestPath: 'msal-node-wrapper'
}
Node.js v22.12.0
The text was updated successfully, but these errors were encountered:
Which version of Microsoft.Identity.Client are you using?
"@azure/msal-node": "^2.7.0"
Note that to get help, you need to run the latest version.
Repro
Expected behavior
nodejs server starts and listens on port 4000 (as per the sample)
Actual behavior
Get this error
node:internal/modules/cjs/loader:502
throw err;
^
Error: Cannot find module 'C:\git\ms-identity-javascript-nodejs-tutorial\1-Authentication\1-sign-in\App\node_modules\msal-node-wrapper\dist\index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:494:19)
at Function._findPath (node:internal/modules/cjs/loader:795:18)
at Function._resolveFilename (node:internal/modules/cjs/loader:1235:27)
at Function._load (node:internal/modules/cjs/loader:1075:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:138:16)
at Object. (C:\git\ms-identity-javascript-nodejs-tutorial\1-Authentication\1-sign-in\App\app.js:9:32)
at Module._compile (node:internal/modules/cjs/loader:1565:14) {
code: 'MODULE_NOT_FOUND',
path: '\\?\C:\git\ms-identity-javascript-nodejs-tutorial\1-Authentication\1-sign-in\App\node_modules\msal-node-wrapper\package.json',
requestPath: 'msal-node-wrapper'
}
Node.js v22.12.0
The text was updated successfully, but these errors were encountered: