SharePoint | SPFx | Power Apps | Power Automate/ MS Flows | Power BI | React | Azure
Error:
node_modules/rc-mentions/lib/util.d.ts(4,55): error TS1110: Type expected.
I encountered this error when I was creating a web part in SharePoint Framework using ReactJS.
Solution:
Install the latest version of Typescript or update rush-stack-compiler
npm install typescript@latest
npm install @microsoft/rush-stack-compiler-3.3 --save
or you can use
npm update
Verify that the folder named
rush-stack-compiler-3.3
inside
node_modules/@microsoft
folder.
Now remove dependencies from
package.json
file for older version and include for the new one.
Change
tsconfig.json
file in
extends
field for the new path.
I am a developer and working on SharePoint and Project Server in an MNC. I have more than 10 years of experience in the same field.
View all posts by Akanksha Gupta
Enter your email address to follow this blog and receive notifications of new posts by email.
Email Address: