2

I am getting this error when I import the sp-page-context into my angular solution:

ERROR in ./node_modules/@microsoft/sp-core-library/lib/SPCoreLibraryStrings.resx.js Module not found: Error: Can't resolve 'resx-strings' in 'XXXXXXXXXXXXX\node_modules@microsoft\sp-core-library\lib' ERROR in ./node_modules/@microsoft/sp-dynamic-data/lib/loc/Strings.resx.js Module not found: Error: Can't resolve 'resx-strings' in 'XXXXXXXXXXXXX\node_modules@microsoft\sp-dynamic-data\lib\loc' ERROR in ./node_modules/@microsoft/sp-page-context/lib/loc/Strings.resx.js Module not found: Error: Can't resolve 'resx-strings' in 'XXXXXXXXXXXXX\node_modules@microsoft\sp-page-context\lib\loc'

1 Answer 1

0

Try running below commands on in your package:

npm i @microsoft/sp-core-library
npm i @microsoft/sp-dynamic-data
npm i @microsoft/sp-page-context

Also, make sure you have "ControlStrings": "node_modules/@pnp/spfx-controls-react/lib/loc/{locale}.js" in your localizedResources in config.json as mentioned here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.