question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When loading the component on a SharePoint 2019 on premises, it is stuck on "loading..."

See original GitHub issue

Describe the bug When you try to load this component on a modern experience page in SharePoint 2019, the editor is stuck on “loading…” Same page works on SharePoint online.

Seems like this is the broken flow: the “configureLoader” function configures require, then calls: require(['vs/editor/editor.main'], function (monaco) {...}

That gets the loader.js and the editor.main.js from the CDN on the page.

While on SPO it will then continue to load the rest of the needed files, on 2019 it will stop there and return “undefined” to the require handler function.

To Reproduce

Steps to reproduce the behavior:

  1. Create an SPFx web part package that uses this component
  2. Add it to a modern page on SharePoint 2019
  3. The editor will remain stuck on “loading…”

For reproduction, I am more than happy to share login and code to a test-site.

Expected behavior Editor should load correctly.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10, 11
  • Browser Chrome, Edge
  • Version latest versions

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
suren-atoyancommented, Oct 13, 2021

@shaipetel most probably it’s related to the original package (not react wrapper). But let’s try something - could you please check this discussion.

0reactions
shaipetelcommented, Oct 13, 2021

well, upon further testing - not 100%.

See, if I restore define to what it was before - then all auto complete and code markups do not show up.

So I have to keep it until my control is unmounted entirely, which solves this problem but - during the entire time the editor is on the page (in my case, user opens/closes it as needed) the rest of the page cannot use require to import anything.

So, since I’m only using it in design time its not very critical atm, but would be awesome if it is fixed in the future in a way that won’t conflict with other versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SharePoint 2019 On-Premises facing an issue with Page ...
My SharePoint pages are having an error that it couldn't load the page data. When I am updating the details of documents in...
Read more >
Sharepoint 2013 Search Service Application stuck 'loading'
Make sure it has local administrator permission on WFEs running search components. Clear configuration Cache. If an Answer is helpful, please ...
Read more >
Solved: Sharepoint integrated PowerApps form stuck on load...
Hi Samuel, I just found a workaround, you can try is it also work on your side. Go to setting->Turn off "Preload app...
Read more >
Common issues and resolutions for Power Apps
A list of common issues and resolutions within Power Apps.
Read more >
Get error that Search Service Application on server is not ...
Note:- Do not Clear your timer cache on any of the Sharepoint Boxes unless you are guided by MSFT Escalation engineer to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found