0

Classic pages with modern spfx now fails if you load require.js with LoadSodByKey since last week. Any idea how to fix or how to report this to Microsoft?

LoadSodByKey("require.js", function () {
  // stuff
}

With modern SPFX webpart (Version: 1.4.1 -> "@microsoft/sp-webpart-base": "~1.4.1") requirejs fails to load and is undefined. HTTP request with require.js did work but require is still undefined... Loadingproblems but it works like 1/20 times.

Thanks for any kind of help.

Alex

0

I build a workaround with cleanRequireJS();.

First you have to check if all your modern SPFX webparts are loaded (i check there divs), wait for that situation with setTimeout/loop and AFTER that i make cleanRequireJS(); and load SP "require.js" and all other stuff we use this for.

Best regards!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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