cmorten / opine

Minimalist web framework for Deno ported from ExpressJS.
https://github.com/cmorten/opine/blob/main/.github/API/api.md
MIT License
854 stars 43 forks source link

Ipaddr does not provide an export named 'default #137

Closed MrGapa closed 3 years ago

MrGapa commented 3 years ago

Issue

Setup:

Details

error: Uncaught SyntaxError: The requested module 'https://esm.sh/ipaddr.js@2.0.0' does not provide an export named 'default' export { default as ipaddr } from "https://esm.sh/ipaddr.js@2.0.0";


    at <anonymous> (https://deno.land/x/opine@1.7.0/deps.ts:54:10).
cmorten commented 3 years ago

Hmm, can’t reproduce with that error, but am seeing 408 timeouts when try to access that asset via esm.sh - wonder if the CDN is having issues 🤔

cmorten commented 3 years ago

Have reproduced reliably now - curious as nothing has changed from Opine's side - indeed CI passed for this version, importing this dep etc.

From what understand esm.sh maps to a mutable cdn.esm.sh/v* like url, and suspect that a version has revved and introduced a regression. It doesn't appear that you can fix the version of esm.sh that you use as it just bounces you, so we are suspectible to breaking changes. Going to give migrating to skypack a go.