I am trying to migrate my code from Classic experience to SPfX.
My code is using the SP.UI.ModalDialog
, and I have referenced successfully the MicrosoftAjax.js, SP.Runtime.js
and the SP.js
files in my project, and they are visible as source files in the browser developer tools. However the same approach just doesn't
work for strings.js
, even though I've paid attention that strings.js
is located under the layouts/15/1033
folder instead of layouts/15
.
I keep getting the error message
Unable to get property 'STS' of undefined or null reference
and I am unable to find strings.js
within the source files of my browser developer tools.
The solutions proposed under the links below simply do not apply to SPfX:
Unable to get property 'STS' undefined or null reference - Sp.ui.dialog.js