jspm / project

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

CDN build error for @polkadot/rpc-core@6.12.2-17 #156

Closed danforbes closed 2 years ago

danforbes commented 2 years ago

Reporting CDN Build Error.

guybedford commented 2 years ago

There may well be a few more of these - if there are more than a couple I'll create a new issue to work through the build error queue.

guybedford commented 2 years ago

This one should be working now though.

danforbes commented 2 years ago

I'm trying to use @polkadot/api and it still doesn't seem to be working 😣 Thanks for your attention so far 🙏🏻 Here is the web UI you provide (https://generator.jspm.io/#U2VhYGBkDM0rySzJSU1hcCjIz8lOTMkv0U8syHQw0zM00jPSNTQHAAirKSEmAA):

image

Via Deno, it just hangs here:

image

guybedford commented 2 years ago

No problem, finally got this working via https://generator.jspm.io/#U2VhYGBkDM0rySzJSU1hcCjIz8lOTMkv0U8syHQw0zM00jPSNTQHAAirKSEmAA but it's giving an issue in the sandbox that there's an export missing.

As far as I can tell though, that issue is a valid named export bug - @poladot/types-create doesn't have a 'mapXcmTypes' export at all, so perhaps this is something that is just passing Webpack / Rollup builds since they don't do strict checking or something like that?

danforbes commented 2 years ago

cc @jacogr

jacogr commented 2 years ago

I would certainly not suggest building any of the current betas - there is work ongoing for a new major release, so all these are expected. Stick to the stable versions - in this case I don't even pull in the betas into the other @polkadot projects at this state, there are too many breakages.

TL;DR All expected, these are marked beta for a reason :) (PS: IT is exported way past -12, see https://bundlephobia.com/package/@polkadot/types-create@6.12.2-20)