When I import bokehjs
require('bokehjs');
and then run a browserify Grunt task on it, I get
Running "browserify:main" (browserify) task
>> Error: Cannot find module 'core/bokeh_events' from '/home/jasper/Projects/meadows/node_modules/bokehjs/build/js/tree'
bokehjs通常使用绝对模块引用,因此您必须设置paths
选项以包含bokehjs/build/js/tree
(绝对或相对于basedir
;有关详细信息,请参见browserify的文档)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.