rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.36k stars 194 forks source link

Uncaught TypeError: Immutable.Map is not a function #228

Closed DonikaV closed 5 years ago

DonikaV commented 7 years ago

Hi, i am trying to create Reducers with initialState

const initialState = Immutable.Map({
    modalWindows: Immutable.Map({}),
    topbar: Immutable.Map({
        submenu: Immutable.Map({
            isOpen: false,
        }),
        accountMenu: Immutable.Map({
            isOpen: false,
        }),
    }),
    mainPreloader: Immutable.Map({
        isVisible: false,
        color: '#84B916',
        countOfPreloaders: 0,
    }),
    progressBar: Immutable.Map({}),
});

And have error. I used this code in last app that was without Typescript. I can`t code with immutable, have a lot of errors, i found your plugin, but have error with Map. Can you you help me? thanks

TomiS commented 7 years ago

Hmm, your code looks a lot like it's made for Immutable.js which is not same as seamless-immutable. Are you sure you installed correct library? :)

DonikaV commented 7 years ago

Yes. I thougt it is library for using immutable without types error in TS ;)

19 Июл 2017 г. 0:19 пользователь "Tomi Saarinen" notifications@github.com написал:

Hmm, your code looks a lot like it's made for Immutable.js which is not same as seamless-immutable. Are you sure you installed correct library? :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rtfeldman/seamless-immutable/issues/228#issuecomment-316201222, or mute the thread https://github.com/notifications/unsubscribe-auth/AY5vYryhAN56lC5ZDDMsM0xoGIjJGSFYks5sPSFjgaJpZM4OSj4H .

RusinovAnton commented 6 years ago

This should be closed then?