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

Failed to import - [email protected] #601

Closed
robinbullock opened this issue Apr 19, 2023 · 3 comments
Closed

Failed to import - [email protected] #601

robinbullock opened this issue Apr 19, 2023 · 3 comments
Labels
browser Not working in Browser

Comments

@robinbullock
Copy link

robinbullock commented Apr 19, 2023

Failing module

import Amplify from "https://esm.sh/[email protected]?target=es2022&pin=v99&external=uuid&bundle"

Error message

After onload I got this:

GET https://esm.sh/v99/@aws-sdk/[email protected]/X-ZS91dWlk/es2022/package.json.js 500

Additional info

  • esm.sh version: 99
  • Browser version: 112.0.5615.49 (arm64)

aws-amplify is has a depedency several steps down the chain on @aws-sdk/client-location, which is failing to load it's own package.json.js file with a 500.

In our case this is breaking our entire application.

I can't say for certain when any breakage actually occurred (as the browser will have cached the files in question) but I first saw it around 2023-04-19 1545 UTC.

I'm saying "breakage" on the assumption that something has actually broken here. I'm basing this on the fact that I'm using a pinned version, so the behaviour should be consistent.

@robinbullock robinbullock added the browser Not working in Browser label Apr 19, 2023
@robinbullock
Copy link
Author

robinbullock commented Apr 19, 2023

@ije sorry for tagging you directly but is there anything you can do to help with this 500 error? The same file is failed with a later version of the @aws-sdk/client-location package so I'm struggling to find a workaround at the moment. Thanks in advance if you are able.

@ije ije closed this as completed in 44c6d74 Apr 19, 2023
@ije
Copy link
Member

ije commented Apr 19, 2023

fixed, it was caused by expr `import "./package.json", will deploy the change later

@robinbullock
Copy link
Author

@ije thanks so much for the quick response ❤️

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

No branches or pull requests

2 participants