esm-dev / esm.sh

A fast, smart, & global CDN for modern(es2015+) web development.
https://esm.sh
MIT License
3.07k stars 147 forks source link

Failed to import - jotai/utils #833

Open nanikit opened 4 months ago

nanikit commented 4 months ago

Failing module

import { atomFamily } from 'https://esm.sh/jotai@2.8.0/utils'

Expected behavior

It should be resolved.

Actual behavior

> import { atomFamily } from 'https://esm.sh/jotai@2.8.0/utils'
undefined
> atomFamily
undefined
> import * as a from 'https://esm.sh/jotai@2.8.0/utils'
undefined
> a
[Module: null prototype] {
  default: {
    RESET: Symbol(RESET),
    atomFamily: [Function: Y],
    atomWithDefault: [Function: te],
    atomWithLazy: [Function: pe],
    atomWithObservable: [Function: ie],
    atomWithReducer: [Function: K],
    atomWithRefresh: [Function: ve],
    atomWithReset: [Function: j],
    atomWithStorage: [Function: re],
    createJSONStorage: [Function: V],
    freezeAtom: [Function: N],
    freezeAtomCreator: [Function: Q],
    loadable: [Function: ae],
    selectAtom: [Function: H],
    splitAtom: [Function: ee],
    unstable_withStorageValidator: [Function: ne],
    unwrap: [Function: de],
    useAtomCallback: [Function: _],
    useHydrateAtoms: [Function: g],
    useReducerAtom: [Function: E],
    useResetAtom: [Function: R]
  }
}

Additional info