我很喜欢使用babel es6支持的browserify-rails!但是我对这样的错误感到困扰,因为没有提到原始源文件位置因此我很难调试/修复。很明显,这个(下面)只是一个.js文件中的一个拙劣的需求/导入/导出,但是没有引用源路径,需要大量的调查才能修复......我缺少什么?
Started GET "/" for 127.0.0.1 at 2016-04-20 06:00:00 -0700
ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
Processing by ClientController#load as HTML
Rendered client/load.html.erb within layouts/client (1.6ms)
Browserify: /Users/eric/Dropbox/calcium/node_modules/.bin/browserifyinc -d --transform babelify --list --cachefile=/Users/eric/Dropbox/calcium/tmp/cache/browserify-rails/browserifyinc-cache.json -o "/Users/eric/Dropbox/calcium/tmp/cache/browserify-rails/output20160420-21848-1xfzor9" -
Completed 500 Internal Server Error in 361ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (Error while running `/Users/eric/Dropbox/calcium/node_modules/.bin/browserifyinc -d --transform babelify --list --cachefile=/Users/eric/Dropbox/calcium/tmp/cache/browserify-rails/browserifyinc-cache.json -o "/Users/eric/Dropbox/calcium/tmp/cache/browserify-rails/output20160420-21848-1xfzor9" -`:
module.js:328
throw err;
^
Error: Cannot find module '../'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/eric/Dropbox/calcium/node_modules/.bin/browserifyinc:3:29)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
):