Skip to content

No name was provided for external module/Failed to resolve module specifier #12482

Closed Answered by selfagency
selfagency asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I figured it out.

The two issues, the first being the warnings about unnamed modules, and the second about not being able to 'resolve module specifier' are actually not really related though they appear to be as they both deal with the same imports.

The issue was that these are Web Workers I was importing using the ?worker method and not the import.meta.url method. As such, I was improperly importing dependencies for those workers from my local project thinking incorrectly that they'd be imported. The fix was:

  1. To build my workers using a separate TypeScript config so that they compiled to the static folder.
  2. Use unpkg.com with a standard import call (not importScripts) for my workers'…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by selfagency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant