esm.sh
esm.sh copied to clipboard
Failed to import - cannot unmarshal array into Go struct field
Failing module
- npm: https://www.npmjs.com/package/accounting
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 There is a problem with their package.json. Here is the issue which needs to be fixed to resolve this: https://github.com/openexchangerates/accounting.js/issues/235
https://esm.sh/[email protected]
I understand, it's because the dependencies array is empty. Can we make it compatible?
this is going to be fixed in next deploy, check the dev branch: https://next.esm.sh/[email protected]