esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import - cannot unmarshal array into Go struct field

Open xiangyin1987 opened this issue 1 year ago • 3 comments

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 avatar Oct 16 '24 12:10 xiangyin1987

@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

rybarix avatar Oct 19 '24 21:10 rybarix

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

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

xiangyin1987 avatar Oct 21 '24 07:10 xiangyin1987

this is going to be fixed in next deploy, check the dev branch: https://next.esm.sh/[email protected]

ije avatar Jan 07 '25 21:01 ije