Using ESM.sh to load @module-federation/enhanced #3699
oravecz-jpmc
started this conversation in
General
Replies: 1 comment
-
I was able to find another package to import which does expose
But, I'm still wondering why ESM is not able to resolve the init function with the original import statement. I've raised a ticket on their website to investigate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is anyone having success loading @module-federation/enhanced using the esm.sh service?
I'm attempting to import the
init()
function, but cannot figure out the proper URL to serve it.import { init } from 'https://esm.sh/@module-federation/[email protected]/runtime';
However, I get what appears to be a series of successful network requests to get the ES module, but I receive the following error:
Uncaught SyntaxError: The requested module '(https://esm.sh/@module-federation/[email protected]/runtime)' does not provide an export named 'init'
I have tried numerous url formats without success yet.
Beta Was this translation helpful? Give feedback.
All reactions