Twitter bootstrap 从4.1.2升级到4.1.3后,Ember项目崩溃
我在更新项目依赖项时遇到了一个非常奇怪的问题。我安装了Bootstrap 4.0.0,安装最新(4.1.3)版本会使我的项目无法使用。呈现页面时,我会遇到以下错误:Twitter bootstrap 从4.1.2升级到4.1.3后,Ember项目崩溃,twitter-bootstrap,ember.js,yarnpkg,ember-bootstrap,Twitter Bootstrap,Ember.js,Yarnpkg,Ember Bootstrap,我在更新项目依赖项时遇到了一个非常奇怪的问题。我安装了Bootstrap 4.0.0,安装最新(4.1.3)版本会使我的项目无法使用。呈现页面时,我会遇到以下错误: TypeError: Cannot read property 'commit' of null at Environment.commit (vendor.js:22569) at Environment.commit (vendor.js:32631) at InteractiveRenderer._re
TypeError: Cannot read property 'commit' of null
at Environment.commit (vendor.js:22569)
at Environment.commit (vendor.js:32631)
at InteractiveRenderer._renderRootsTransaction (vendor.js:34756)
at InteractiveRenderer._renderRoot (vendor.js:34686)
at InteractiveRenderer._appendDefinition (vendor.js:34611)
at InteractiveRenderer.appendOutletView (vendor.js:34599)
at invokeWithOnError (vendor.js:24513)
at Queue.flush (vendor.js:24422)
at DeferredActionQueues.flush (vendor.js:24575)
Uncaught TypeError: Cannot read property 'off' of null
at Class.teardown (vendor.js:110423)
at Class.willDestroyElement (vendor.js:110416)
at Class.trigger (vendor.js:60712)
at Class.superWrapper [as trigger] (vendor.js:58700)
at ComponentStateBucket.destroy (vendor.js:35913)
at SimpleBlockTracker.destroy (vendor.js:18333)
at SimpleBlockTracker.destroy (vendor.js:18333)
at SimpleBlockTracker.destroy (vendor.js:18333)
at SimpleBlockTracker.destroy (vendor.js:18333)
at UpdatableBlockTracker.destroy (vendor.js:18333)
我试着用余烬检查器调试它。我有同样的线索:
Ember Inspector (Promise Trace):
at new Promise (http://localhost:4200/assets/vendor.js:66433:28)
at new Enumerator (http://localhost:4200/assets/vendor.js:66009:22)
at Function.all (http://localhost:4200/assets/vendor.js:66173:12)
at all$1 (http://localhost:4200/assets/vendor.js:66950:20)
at Class.sendPending (<anonymous>:801:22)
at Class.watch (<anonymous>:861:14)
at sendEvent (http://localhost:4200/assets/vendor.js:37374:18)
at Class.trigger (http://localhost:4200/assets/vendor.js:52321:33)
at wrap (<anonymous>:3462:14)
Ember检查员(承诺跟踪):
在新的承诺下(http://localhost:4200/assets/vendor.js:66433:28)
在新的枚举器上(http://localhost:4200/assets/vendor.js:66009:22)
一点也不(http://localhost:4200/assets/vendor.js:66173:12)
总共1美元(http://localhost:4200/assets/vendor.js:66950:20)
在Class.sendPending(在JS文件中)
升级4.1.2->4.1.3后,warn.lock
中唯一的区别是bootstrap
包的一个版本,因此它不是由某些bootstrap依赖项的更新引起的
这种行为的原因是什么
这是我的。提前感谢您的帮助。我正在通过ember bootstrap
库使用bootstrap 4.1.3,没有问题。我怀疑问题在于引导javascript通过ember-cli-boostrap-4从节点模块导入应用程序的方式
您可能应该将ember-cli-bootstrap-4
更新到最新版本(0.6.0),以便加载项根据最新版本的引导正确导入文件