-
Notifications
You must be signed in to change notification settings - Fork 1k
Error: Failed to load parser '@typescript-eslint/parser' declared in '.eslintrc.js#overrides[0]': Cannot find module '@typescript-eslint/parser' #10273
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
Comments
I didn't have to wait long =)
So.... version |
Hello @kkazala, |
Hello @kkazala, |
@Amey-MSFT I did, but I had to add it myself. And I had to find out which version should be installed first =) The issue I'm reporting is that Since Hope this explanation helps =) |
Hello @kkazala, |
I don’t think it’s a feature request. I think it’s a bug
Pnpm is supported as a package manager for SPFx projects.
Newly created project doesn’t build.
I’m asking the SPFx team to ensure that the dependencies are listed correctly, so newly created projects build correctly after installing dependencies listed in package.json.
If I have to fix the project configuration before I’m able to build a new project, I think it’s a bug
I already provided the solution, now it’s just adding the missing line
Couldn’t be easier :)
…________________________________
From: Amey-MSFT ***@***.***>
Sent: Monday, May 26, 2025 6:46:16 AM
To: SharePoint/sp-dev-docs ***@***.***>
Cc: Kinga ***@***.***>; Mention ***@***.***>
Subject: Re: [SharePoint/sp-dev-docs] Error: Failed to load parser ***@***.***/parser' declared in '.eslintrc.js#overrides[0]': Cannot find module ***@***.***/parser' (Issue #10273)
[https://avatars.githubusercontent.com/u/201892549?s=20&v=4]Amey-MSFT left a comment (SharePoint/sp-dev-docs#10273)<#10273 (comment)>
Hello @kkazala<https://github.com/kkazala>,
So, I will proceed with this by raising as feature request.
Meanwhile you can also raise a feature request by using this link :- SharePoint · Community<https://feedbackportal.microsoft.com/feedback/forum/06735c62-321c-ec11-b6e7-0022481f8472>
—
Reply to this email directly, view it on GitHub<#10273 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFLD3HYZWLJNJX5DZB72JG33AKMBRAVCNFSM6AAAAAB5PWZXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBYGUYDSNBTGE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hello @kkazala, |
Thank you for the confirmation. :)
I hope investigation will be fruitful, you already have the solution :)
…________________________________
From: Amey-MSFT ***@***.***>
Sent: Monday, May 26, 2025 2:52:33 PM
To: SharePoint/sp-dev-docs ***@***.***>
Cc: Kinga ***@***.***>; Mention ***@***.***>
Subject: Re: [SharePoint/sp-dev-docs] Error: Failed to load parser ***@***.***/parser' declared in '.eslintrc.js#overrides[0]': Cannot find module ***@***.***/parser' (Issue #10273)
[https://avatars.githubusercontent.com/u/201892549?s=20&v=4]Amey-MSFT left a comment (SharePoint/sp-dev-docs#10273)<#10273 (comment)>
Hello @kkazala<https://github.com/kkazala>,
Apologies for the misunderstanding,
We were able to reproduce the issue, and we are investigating it. We have logged this as a bug, and our engineering team will look into it.
Thank you!
—
Reply to this email directly, view it on GitHub<#10273 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFLD3H2SLDDUZUPJ2WKKWMT3AMFBDAVCNFSM6AAAAAB5PWZXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBZGY2TEMRTGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
I created new project using
yo @microsoft/sharepoint --package-manager pnpm
command.After installing dependencies (
pnpm i
) and rebuilding the project (gulp build
) I'm getting an error:I didn't change a single thing in the
package.json
,tsconfig.json
or.eslintrc.js
Steps to reproduce
pnpm
package manageryo @microsoft/sharepoint --package-manager pnpm
pnpm i
gulp build
Expected behavior
Build without an error =)
The question here is: which version of the
@typescript-eslint/parser
should I add to project dependencies?Reviewing
pnpm-lock.yaml
, I see v5.20 but this givesParsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead.
Adding
^6.0.0
solved the issue, but I also see various v8. I wonder what is the recommended approach here, so I don't have more problems and work down the road =)The text was updated successfully, but these errors were encountered: