добавление config.active_storage.service в config выдает кучу ошибок: Ошибка: ошибка rails-erb-loader с кодом: 1 - PullRequest
0 голосов
/ 10 января 2020

Я перехожу с Paperclip на ActiveStorage, и все работает нормально, пока я не добавлю эту строку в мои настройки среды,

staging.rb

config.active_storage.service = :microsoft

Затем при нажатии на heroku я получаю кучу ошибок:

ERROR in ./app/webpacker/packs/images.js.erb
   Module build failed (from ./node_modules/rails-erb-loader/index.js):
   Error: rails-erb-loader failed with code: 1
       at ChildProcess.<anonymous> (/tmp/build_9bfa84416c2339d7c4a9205780d2b613/node_modules/rails-erb-loader/index.js:128:16)
       at ChildProcess.emit (events.js:223:5)
       at maybeClose (internal/child_process.js:1021:16)
       at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

   ERROR in ./app/webpacker/packs/fonts.js.erb
   Module build failed (from ./node_modules/rails-erb-loader/index.js):
   Error: rails-erb-loader failed with code: 1
       at ChildProcess.<anonymous> (/tmp/build_9bfa84416c2339d7c4a9205780d2b613/node_modules/rails-erb-loader/index.js:128:16)
       at ChildProcess.emit (events.js:223:5)
       at maybeClose (internal/child_process.js:1021:16)
       at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

   ERROR in ./app/webpacker/packs/stylesheets.js.erb
   Module build failed (from ./node_modules/rails-erb-loader/index.js):
   Error: rails-erb-loader failed with code: 1
       at ChildProcess.<anonymous> (/tmp/build_9bfa84416c2339d7c4a9205780d2b613/node_modules/rails-erb-loader/index.js:128:16)
       at ChildProcess.emit (events.js:223:5)
       at maybeClose (internal/child_process.js:1021:16)
       at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

   ERROR in ./app/webpacker/packs/home.js.erb
   Module build failed (from ./node_modules/rails-erb-loader/index.js):
   Error: rails-erb-loader failed with code: 1
       at ChildProcess.<anonymous> (/tmp/build_9bfa84416c2339d7c4a9205780d2b613/node_modules/rails-erb-loader/index.js:128:16)
       at ChildProcess.emit (events.js:223:5)
       at maybeClose (internal/child_process.js:1021:16)
       at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

   ERROR in ./app/webpacker/packs/application.js.erb
   Module build failed (from ./node_modules/rails-erb-loader/index.js):
   Error: rails-erb-loader failed with code: 1
       at ChildProcess.<anonymous> (/tmp/build_9bfa84416c2339d7c4a9205780d2b613/node_modules/rails-erb-loader/index.js:128:16)
       at ChildProcess.emit (events.js:223:5)
       at maybeClose (internal/child_process.js:1021:16)
       at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

При удалении строки pu sh завершается успешно, но загрузка не удалась из-за отсутствующего конфига.

...