加载react-dom失败,需要

时间:2018-12-04 18:32:16

标签: javascript reactjs

由于技术原因,我必须使用require()方法加载react-dom。但是,当我使用# set up logging ##################################### import sys,logging,logging.handlers,os.path #place log alongside the script log_file=os.path.splitext(__file__)[0]+".log" l = logging.getLogger() l.setLevel(logging.INFO) f = logging.Formatter('%(asctime)s %(process)d:%(thread)d %(name)s %(levelname)-8s %(message)s') h=logging.StreamHandler(sys.stdout) h.setLevel(logging.NOTSET) h.setFormatter(f) l.addHandler(h) h=logging.handlers.RotatingFileHandler(log_file,maxBytes=1024**2,backupCount=1) h.setLevel(logging.NOTSET) h.setFormatter(f) l.addHandler(h) del h,f #hook to log unhandled exceptions def excepthook(type,value,traceback): logging.error("Unhandled exception occured",exc_info=(type,value,traceback)) #Don't need another copy of traceback on stderr if old_excepthook!=sys.__excepthook__: old_excepthook(type,value,traceback) old_excepthook = sys.excepthook sys.excepthook = excepthook del log_file,os # #################################################### 时,出现错误消息:“ Dc未定义”

当我使用react-dom.development.js时,错误是“ _ReactInternals $ Sched未定义”。怎么会这样可以在require(“ react-dom”)上正常工作,但是我特别想要生产版本

0 个答案:

没有答案