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

awilix/browser: SyntaxError: Named export 'RESOLVER' not found #377

Closed
MathiasWP opened this issue Oct 7, 2024 · 7 comments · Fixed by #378
Closed

awilix/browser: SyntaxError: Named export 'RESOLVER' not found #377

MathiasWP opened this issue Oct 7, 2024 · 7 comments · Fixed by #378

Comments

@MathiasWP
Copy link
Contributor

Upgrading to Awilix v12 throws this error when trying to import from awilix/browser:

image
@MathiasWP
Copy link
Contributor Author

I see now that it is because i'm in a Node env, and there's a entry for that ENV

@MathiasWP MathiasWP reopened this Oct 7, 2024
@jeffijoe
Copy link
Owner

jeffijoe commented Oct 7, 2024

I'm renaming awilix.browser.js to awilix.browser.mjs (see discussion in #368) which should fix this.

@jeffijoe
Copy link
Owner

jeffijoe commented Oct 7, 2024

Please try [email protected]

@MathiasWP
Copy link
Contributor Author

I'm renaming awilix.browser.js to awilix.browser.mjs (see discussion in #368) which should fix this.

Thanks! I was just setting up a PR to do this, but you got there first 😸

@jeffijoe
Copy link
Owner

jeffijoe commented Oct 7, 2024

We've been trying to figure this out for a few days.

image

@MathiasWP
Copy link
Contributor Author

i feel sorry for you haha, are you making a new release with this fix?

@jeffijoe
Copy link
Owner

jeffijoe commented Oct 7, 2024

Yes, once it's been confirmed to also work with CloudFlare - I'm getting tired of writing "fix exports" in the changelog. 😅

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

Successfully merging a pull request may close this issue.

2 participants