rails / webpacker

Use Webpack to manage app-like JavaScript modules in Rails
MIT License
5.31k stars 1.47k forks source link

webpacker:compile RAILS_ENV=production ОШИБКА #376

Closed nikolaokonesh closed 7 years ago

nikolaokonesh commented 7 years ago

Добрый день! набираю в консоли RAILS_ENV=production bundle exec rake webpacker:compile Выходит ошибка: -------------------------------------------------------> ...... "id": 1, "identifier": "/home/nikola/rails5/vsrednem/node_modules/css-loader/index.js?minimize!/home/nikola/rails5/vsrednem/node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-3aab8807\",\"scoped\":true,\"hasInlineConfig\":false}!/home/nikola/rails5/vsrednem/node_modules/vue-loader/lib/selector.js?type=styles&index=0!/home/nikola/rails5/vsrednem/app/javascript/packs/app.vue", "name": "./~/css-loader?minimize!./~/vue-loader/lib/style-compiler?{\"vue\":true,\"id\":\"data-v-3aab8807\",\"scoped\":true,\"hasInlineConfig\":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./app/javascript/packs/app.vue", "index": 0, "index2": 1, "size": 220, "cacheable": true, "built": true, "optional": false, "prefetched": false, "chunks": [ 0 ], "assets": [], "issuer": null, "issuerId": null, "issuerName": null, "failed": false, "errors": 0, "warnings": 0, "reasons": [], "usedExports": true, "providedExports": null, "depth": 0, "source": "exports = module.exports = require(\"../../../node_modules/css-loader/lib/css-base.js\")(undefined);\n// imports\n\n\n// module\nexports.push([module.id, \"p[data-v-3aab8807]{font-size:2em;text-align:center}\", \"\"]);\n\n// exports\n" } ], "filteredModules": 0, "children": [], "name": "extract-text-webpack-plugin" } ] } info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ' /home/nikola/.rbenv/versions/2.4.0/bin/bundle:22:in load' /home/nikola/.rbenv/versions/2.4.0/bin/bundle:22:in

' Tasks: TOP => webpacker:compile (See full trace by running task with --trace) <---------------------------------------------------------END

Deploy также не работает. Помогите. спасибо

gauravtiwari commented 7 years ago

@1989medium Hey, Could you please paste full logs?

savroff commented 7 years ago

@gauravtiwari sorry for Russian folklore... please paste here a link to gist with full trace

@1989medium закинь полный лог в gist и ссылку в студию.

nikolaokonesh commented 7 years ago

Извините, ошибка была найдена в компоненте vue-particles в node_modules/vue-particles/.babelrc Если сможете запустить vue-particles то я буду рад увидеть как устранили ошибку .babelrc Спасибо!

gauravtiwari commented 7 years ago

Are you using this code in .babelrc? (Вы используете этот код в .babelrc?)

{
  "presets": [
    ["env", {
      "modules": false,
      "targets": {
        "browsers": "> 1%",
        "uglify": true
      },
      "useBuiltIns": true
    }]
  ]
}
gauravtiwari commented 7 years ago

Closing this due to inactivity. Feel free to report back if any issues 👍