2017-08-04 58 views
0

为什么我在下面这个错误,对于这个node moduleES6 docready - 未捕获TypeError:(0,_docready2.default)不是函数

Uncaught TypeError: (0 , _docready2.default) is not a function 
    at Object.1.docready (bundle.min.js:32) 

我的主文件:

import docReady from 'docready'; 

docReady(function() { 
    console.log("DOM is ready. Let's party"); 
}); 
+1

你引用(我写)的docReady脚本不是ES6模块中,并没有任何出口。它只是一个可以在'

相关问题