jspm / project

Roadmap and management repo for the jspm project
161 stars 8 forks source link

CDN build error for aws-amplify@4.3.13 #169

Open vovacodes opened 2 years ago

vovacodes commented 2 years ago

Reporting CDN Build Error.

guybedford commented 2 years ago

This is a tough one! Managed to get all the builds to work, just debugging uuid@3.3.2 now, should hopefully have something by tomorrow.

guybedford commented 2 years ago

Okay so everything is actually working as best as it can at this point. Here's the version that loads:

https://jspm.org/sandbox#H4sIAAAAAAAAA+1dbW/bOBL+3l+her/s3lVSnJc27SZB9qVYdG+zuLtecbj7cqAl2mIiiapIJXGL/vcbUrIjy5RESkqsAEbRJrZm5hkOh+SQHE3PXvrU48sEWwGPwosXZ6sfGPkXLyzrLMIcWV6AUob5+STjc/t0Ih9wwkN88SmWP/0zN/+8ZolRhM8ntwTfJTTlE8ujMccxiLgjPg/OfXxLPGzLD68sEhNOUGgzD4X4fAoAZ26uwdmM+ksp9aVtww/L+v3j36+s33CMU8Rpan2IhHzrCiXy6XufcOvTP/94B+3hCXvnuosVqXPNksgh1P3u0+GfwX9++/nm16uDdPnxy+8fP02Dj7/c3U5vjq7+8K5//9ff+MHVn++/TK+vDn5e/IL+u/zw9sM/fgIA25a6MC8lCb9IUuphxqxz66uF49t31tdv1rczt3j6QGgJA59PiFQ1Qok04Fepb/Elm7wrvoCv0B2zUZSEZL6EryfrhqB1C+Ikeleiujx2jpzpkRuSmY1Z5JLYx/dAPJESv73KkZhHE7wBpJBcegwE34FEF/ko4ThlriAXUht0uieUXR44h1Pn2N3gvQ+E/SevKrLTeNEsMcuIf3kEzTt0C3p7ltI7hqviLkv2cFGMwiUnXpNkNcPliTN1ptNtU9ZCJUQbJCHQUwfOkZl4e5GiJPgcGsCsWC4PHfhzYAaXYsZNsAQ9ABm2K+OBNgjQguHAdPryPeQFWBdAEuddoxhEtRA01UcA2tpRWgfgI44YN0BZM8CIeeOc6CMtMNXFANLLqRgjBg0hMPWnyOOExtojssxjPGqSFPvEDK/EYg6XzVg200aS1ABy6LzRxxD9ihbarlCQ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lmIrY8Bidg760OU0JRbEUqYldBwCfNEaM1pakWSjFnFzROz7iAsoRm3SImDZYn88D0CLnzv4YRbvwTgS9g6ffvXHyzbFuBnuR4WYsvYs1jqnde1EjM7x7WZUA+aOT1cVWurPHMiIktQWl5KGaMpWZD4fIJiGi8jmrHJRbX5hRKiMvP5JJc0uZAGK1r0F1DQAr/5KUpCMl9aYkxYE+FIKP9m8mMuyrJc1/p3Cu4NViBxYSoLondsBTjFryywn5BlMQzBB6w8lph+pQXhywlYYGIhDmHPLINnNLZ4gFdScjUdCSNul2mInZAuvn9Q7IcfNzr3zBVZMOJnwKPw4sX/Ab1T32x3igAA

I haven't tested if it is fully functional though.

The above needs one tweak from the normally generated version, and that is to override the uuid map with https://ga.jspm.io/npm:uuid@8.3.2/dist/esm-browser/index.js. This can be done in the generator by adding a resolutions: { 'uuid': '8.3.2' } override.

It could be interesting to look at range rules for resolutions eg resolutions: { 'uuid@3': '8.3.2' } kind of thing to enforce the right upgrades where it is known to work between versions. Then such a global version manifest could be part of a kind of resolutions overrides database for better compat.

Another option is to try and get this to build without the "module" condition. I can do that as well if necessary - just let me know.