Issue importing modules from CDN
1 min
Swimlane noticed that some widgets fail to render on the record and dashboard pages.
Upon further investigation, it was discovered that one of the CDNs Swimlane uses to import third-party libraries into widgets (esm.run and unpkg.com) deployed a change recently that broke ESM module resolution in browsers.
To switch affected widgets to use a different CDN instead of esm.run or unpkg.com, replace `unpkg.com` with `esm.run` in any imports in widgets that import third-party dependencies from unpkg.com
Example:
import { select } from 'https://unpkg.com/[email protected]/src/index.js?module';
Should be replaced with
import { select } from 'https://esm.run/[email protected]/src/index.js?module';