esm-dev / esm.sh

The no-build CDN for modern web development.
https://esm.sh
MIT License
3.21k stars 151 forks source link

Failed to import - conf@10.2.0 #410

Closed char8x closed 2 years ago

char8x commented 2 years ago

Failing module

import Conf from 'https://esm.sh/conf@10.2.0?dev';

const config = new Conf();

config.set('unicorn', '🦄');
console.log(config.get('unicorn'));

Error message

After running deno run I got this:

error: Uncaught TypeError: onetime is not a function
        const getPackageData = onetime(() => {
                               ^
    at new Conf (https://esm.sh/v92/conf@10.2.0/deno/conf.development.js:134:32)

Some discovery

image image image

Additional info

kidonng commented 2 years ago

I think this is the same issue as #411. In the meantime, you can try Skypack and see if it works.