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 - cannot unmarshal array into Go struct field #893

Open
xiangyin1987 opened this issue Oct 16, 2024 · 2 comments
Open

Failed to import - cannot unmarshal array into Go struct field #893

xiangyin1987 opened this issue Oct 16, 2024 · 2 comments
Labels
browser Not working in Browser

Comments

@xiangyin1987
Copy link

Failing module

   https://esm.sh/[email protected]

Error message

/* esm.sh - error */
throw new Error("[esm.sh] " + "json: cannot unmarshal array into Go struct field NpmPackageJSON.dependencies of type map[string]string");
export default null;


## Additional info

- **esm.sh version**: v135
- **Browser version**: 129.0.6668.103
@xiangyin1987 xiangyin1987 added the browser Not working in Browser label Oct 16, 2024
@rybarix
Copy link

rybarix commented Oct 19, 2024

@xiangyin1987 There is a problem with their package.json. Here is the issue which needs to be fixed to resolve this: openexchangerates/accounting.js#235

@xiangyin1987
Copy link
Author

https://esm.sh/[email protected]

image
I understand, it's because the dependencies array is empty. Can we make it compatible?

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