I've encountered an issue while trying to set up the MSAL 3 Angular tutorial on my Mac OS. When I run npm start
for the sample app, I receive the following error:
Error: Module not found: Error: Can't resolve '@azure/msal-angular'
and
Error: Module not found: Error: Can't resolve '@azure/msal-browser'
This error is not surprising to me, as the '@azure/msal-angular' and '@azure/msal-browser' node_modules folders do not exist in the sample app's node_modules
directory.
The source code is cloned from:
https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev
Initially, I attempted to use npm install
directly from the 'angular16-sample-app', but the '@azure/msal-angular' node_modules sub-folder was not installed.
After doing a fresh clone from git, I ran npm install
from the root directory. The entire repository is quite large with multiple workspaces, and although running from the root did build the sample app's node_modules sub-directory, it still lacked the '@azure/msal-angular' and '@azure/msal-browser' modules, similar to installing from the sample app directory.
No errors were reported during the npm install
processes, and I have successfully followed MSAL v2 tutorials before without any issues.
What could I be overlooking? Is there a linking step that I might have missed?