Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Error: ENOENT: no such file or directory" in path : azure/msal-react/src/packageMetadata.ts #6382

Closed
luan-dang-techlabs opened this issue Aug 23, 2023 · 8 comments · Fixed by #6398
Assignees
Labels
bug A problem that needs to be fixed for the feature to function as intended. msal-browser Related to msal-browser package msal-react Related to @azure/msal-react public-client Issues regarding PublicClientApplications

Comments

@luan-dang-techlabs
Copy link

luan-dang-techlabs commented Aug 23, 2023

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

3.0.2

Wrapper Library

MSAL React (@azure/msal-react)

Wrapper Library Version

2.0.2

Public or Confidential Client?

Public

Description

e.g. package.json

...
devDependencies: {
   "react-scripts": "5.0.1"
},
 scripts: {
  "start": "react-scripts start"
 }
...
...

I am getting this message because I don't have path 'src/' when running npm start

Screenshot 2023-08-22 at 11 41 44 AM Screenshot 2023-08-22 at 11 45 02 AM

MSAL Configuration

No response

Relevant Code Snippets

No response

Identity Provider

Other

Source

External (Customer)

@luan-dang-techlabs luan-dang-techlabs added the question Customer is asking for a clarification, use case or information. label Aug 23, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Aug 23, 2023
@github-actions github-actions bot added msal-browser Related to msal-browser package msal-react Related to @azure/msal-react public-client Issues regarding PublicClientApplications labels Aug 23, 2023
@lalimasharda
Copy link
Contributor

Hey @luan-dang-techlabs, are you seeing this error on install/build? Can you double check our guidance on package installation?

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels Aug 23, 2023
@luan-dang-techlabs
Copy link
Author

luan-dang-techlabs commented Aug 23, 2023

Hey @luan-dang-techlabs, are you seeing this error on install/build? Can you double check our guidance on package installation?

Sorry, I should have made it more clear. I get this error when I start my local server like this:

 package.json 


{
...
devDependencies: {
   "react-scripts": "5.0.1"
},
 scripts: {
  "start": "react-scripts start"
 }
...
  • when i start my local server like this:
 $ npm start

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 Awaiting response from the MSAL.js team and removed Needs: Author Feedback Awaiting response from issue author labels Aug 23, 2023
@lalimasharda
Copy link
Contributor

lalimasharda commented Aug 23, 2023

Did you try building the packages locally before running the app? Maybe try npm run build:package like here.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels Aug 23, 2023
@luan-dang-techlabs
Copy link
Author

Did you try building the packages locally before running the app? Maybe try npm run build:package like here.

I didn't, let give that a try.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 Awaiting response from the MSAL.js team and removed Needs: Author Feedback Awaiting response from issue author labels Aug 23, 2023
@luan-dang-techlabs
Copy link
Author

luan-dang-techlabs commented Aug 24, 2023

Did you try building the packages locally before running the app? Maybe try npm run build:package like here.

I didn't, let give that a try.

Even though I had those message, authenticating is working and local server works fine. The issue lies with Failed to parse source map from message showing up. Did something change with the way 'source-map' was created ?

"start": "GENERATE_SOURCEMAP=false react-scripts start",
"start": "react-scripts start",

@lalimasharda
Copy link
Contributor

Hey @luan-dang-techlabs , this is a bug on our side and I will work on putting a fix out for it. Thanks!

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels Aug 25, 2023
@lalimasharda lalimasharda added bug A problem that needs to be fixed for the feature to function as intended. Needs: Attention 👋 Awaiting response from the MSAL.js team and removed question Customer is asking for a clarification, use case or information. Needs: Author Feedback Awaiting response from issue author labels Aug 25, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Attention 👋 Awaiting response from the MSAL.js team label Aug 25, 2023
lalimasharda added a commit that referenced this issue Aug 28, 2023
Added "src" under files to be included in the package

Related GH issue:
[#6382](#6382)
@tnorling tnorling linked a pull request Aug 28, 2023 that will close this issue
@tnorling
Copy link
Collaborator

Addressed in #6398 and will be included in our next release

@zemzelett
Copy link

Hey @luan-dang-techlabs , this is a bug on our side and I will work on putting a fix out for it. Thanks!

Sorry to bother but may i ask when you plan on releasing the fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A problem that needs to be fixed for the feature to function as intended. msal-browser Related to msal-browser package msal-react Related to @azure/msal-react public-client Issues regarding PublicClientApplications
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants