Failed to resolve module specifier "@azure/msal-common/browser" #7434
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-browser
Related to msal-browser package
Needs: Author Feedback
Awaiting response from issue author
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.24.0
Wrapper Library
Not Applicable
Wrapper Library Version
Public or Confidential Client?
Public
Description
I installed the @azure/msal-browser via npm install and created an typescript authentication service. The SPA is based on Polymer3 and LIT components. I searched for any related and existing issues but I could not find one with this exact import problem.
The transpiling is fine but when I am launching the app it leads to an import error.
The directory of the failed import contains 2 files:
This is probably the problematic import:
microsoft-authentication-library-for-js/lib/msal-browser/src/index.ts
Line 158 in 7a01aaf
Thanks for any advice!
Error Message
Uncaught TypeError: Failed to resolve module specifier "@azure/msal-common/browser". Relative references must start with either "/", "./", or "../".
MSAL Logs
No response
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Use Authentication service in an LIT-component:
Expected Behavior
The import is working on runtime.
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome
Regression
No response
The text was updated successfully, but these errors were encountered: