Error: Cannot find module ‘ControlStrings’ in SPFx Web Part

When you run your web part on Workbench or after deployment of web part, you can get the error: Cannot find module ‘ControlStrings’

If you encounter this error, make sure to add below code in config.json file

"ControlStrings": "node_modules/@pnp/spfx-controls-react/lib/loc/{locale}.js"

Author: Akanksha Gupta

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.

Leave a comment

Power Platform Academy

Start or Upgrade your Career with Power Platform

Learn with Akanksha

Python | Azure | AI/ML | OpenAI | MLOps