skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

Unable to build micromark #244

Open snendev opened 2 years ago

snendev commented 2 years ago

Hi, I've been trying to get remark-parse to build with skypack and it seems to be failing in a couple of ways. I managed to get this to work using skypack a few weeks ago, but have lost the pinned URLs and cannot seem to reproduce my success.

I posted a similar issue with https://github.com/remarkjs/remark/discussions/909 (which has more details on my error). It was pointed out that the same problem has been discovered in another build system (rollup/snowpack) https://github.com/micromark/micromark/issues/100#issue-1061328516. It is suggested in this issue that this is a problem with the build tool misinterpreting some recent configuration updates (https://github.com/micromark/micromark/issues/100#issuecomment-979303997). So, I suspect this is what is happening here as well.

Does anyone have any further information on what might be going wrong here? Any help is appreciated. Thanks!

bahrus commented 2 years ago

Here's another library that is unable to build, with no clue as to what the problem is. It could be a totally different issue from @snendev's issue, but the error is the same error message.

https://codepen.io/bahrus/pen/yLzPZRN

The code is here: https://github.com/bahrus/xtal-side-nav/blob/baseline/xtal-side-nav.js

It is really simple code: Two references and a string, for the most part.

The two references are to libraries that skypack is able to build separately, according to my tests. Happy to create public demos if that would be helpful.

The rest of the code is mostly just a string.

The thing I did in that string, though that may be causing the issue is I have some script tags in that string:

<template be-active>
    <script id=be-noticed/be-noticed.js></script>
</template>

Maybe that's a red herring, but just wanted to point that out.