Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove the unnecessary 'await import' (#930) #931

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zensh
Copy link

@zensh zensh commented Sep 16, 2024

Description

await import is incompatible with the ServiceWorker script. This can cause the error: "Uncaught SyntaxError: Cannot use 'import.meta' outside a module."

Fixes # (issue)
#930

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

Copy link
Contributor

@krpeacock krpeacock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zensh I'm open to changing this import.

If you can:

  • revert the changes to the test (the import strategy there is used to make the mocking work)
  • add a note to Changelog.md
  • run npm audit fix

I can accept the PR. If you rather I do it for you, let me know!

@zensh
Copy link
Author

zensh commented Oct 3, 2024

@krpeacock Please do it for me, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants