immerjs / immer

Create the next immutable state by mutating the current one

Home Page:https://immerjs.github.io/immer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does the latest version not support IE11?

mianmalife opened this issue · comments

commented
h.createElement(mt,y({},t))},hq.create=function(){};var vq=hq,mq=Object.prototype.hasOwnProperty;function gq(e,t,n){for(n of e.keys())if(yq(n,t))return n}function yq
commented

@mweststrate The IE11 program runs normally, but the console reports an error that the object cannot find the find method

commented
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import { enableAllPlugins } from 'immer'
import dayjs from 'dayjs'
import App from './App'
import 'antd/dist/antd.less'
import '@/asset/less/app.less'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')
enableAllPlugins()

ReactDOM.render(<App />, document.getElementById('app'))

sorry that is too little detail to be able to hep you with. You might need to make sure enableAllPlugins is called before importing the rest of your app code.