Search code examples
salesforcevis.jssalesforce-lightningvis.js-networklwc

vis.js Network regeneratorRuntime is not defined [regeneratorRuntime is not defined] error in Salesforce


Trying to use vis.js Network library in Salesforce I have tried both in LWC and in an Aura component with api version 40.0 but am receiving regeneratorRuntime is not defined [regeneratorRuntime is not defined] trying to use https://unpkg.com/browse/[email protected]/standalone/umd/vis-network.min.js


Solution

  • I have figured it out, you have to load vis-data seperate from vis-network. you can find my working example here based on the NPSP Relationships and NPSP Affiliations. https://github.com/mrainboldt/visNetworkMapLWC