2017-03-09 48 views
1

私はlaravel 5,3を5.4にアップグレードしたいと思いますが、laravel mixを更新している間、このようなエラーが発生します。私webpack.mix.jsで 、私はこのファイルが含まれます:実行NPMの実行devのは、それが与えた後laravel mixはすべてのファイルをインポートしません。 laravelへのアップグレード5.4

const { mix } = require('laravel-mix'); 

/* 
|-------------------------------------------------------------------------- 
| Mix Asset Management 
|-------------------------------------------------------------------------- 
| 
| Mix provides a clean, fluent API for defining some Webpack build steps 
| for your Laravel application. By default, we are compiling the Sass 
| file for the application as well as bundling up all the JS files. 
| 
*/ 

mix.js('resources/assets/js/app.js', 'public/js') 
    .sass('resources/assets/sass/app.scss', 'public/css'); 

mix.styles([ 
      'bootstrap.min.css', 
      'bootstrap-datetimepicker.min.css', 
      'select2-bootstrap.css', 
      'font-awesome.min.css', 
      'smartadmin-production-plugins.min.css', 
      'smartadmin-production.min.css', 
      'smartadmin-skins.min.css', 
      'menu.css', 
      'chosen.min.css', 
      'your_style.css' 

     ], 
     'public/smartadmin/css/all.css', 
     'resources/assets/smartadmin/css'); 

    /*main js*/ 
    mix.scripts([ 
      'plugin/pace/pace.min.js', 
      'libs/jquery-2.1.1.min.js', 
      'libs/jquery-ui-1.10.3.min.js', 

     ], 
     'public/smartadmin/js/jquery.js', 
     'resources/assets/smartadmin/js'); 

    mix.scripts([ 
      'app.config.js', 
      '/plugin/jquery-touch/jquery.ui.touch-punch.min.js', 
      '/bootstrap/bootstrap.min.js', 
      // '/bootstrap/moment.js', 
      '/bootstrap/bootstrap-datetimepicker.min.js', 
      '/notification/SmartNotification.min.js', 
      '/smartwidgets/jarvis.widget.min.js', 
      '/plugin/easy-pie-chart/jquery.easy-pie-chart.min.js', 
      '/plugin/sparkline/jquery.sparkline.min.js', 
      '/plugin/jquery-validate/jquery.validate.min.js', 
      '/plugin/masked-input/jquery.maskedinput.min.js', 
      '/plugin/select2/select2.min.js', 
      '/plugin/bootstrap-slider/bootstrap-slider.min.js', 
      '/plugin/bootstrap-timepicker/bootstrap-timepicker.min.js', 
      '/plugin/colorpicker/bootstrap-colorpicker.min.js', 
      '/plugin/clockpicker/clockpicker.min.js', 
      '/plugin/msie-fix/jquery.mb.browser.min.js', 
      '/plugin/fastclick/fastclick.min.js', 
      '/plugin/chosen/chosen.jquery.min.js', 
      'app.min.js', 
      '/smart-chat-ui/smart.chat.ui.min.js', 
      '/smart-chat-ui/smart.chat.manager.min.js', 
      '/nestable/jquery.nestable.js', 
      '/plugin/summernote/summernote.min.js', 
      '/smartwidgets/jarvis.widget.min.js', 
      '/plugin/easy-pie-chart/jquery.easy-pie-chart.min.js', 
      '/plugin/fastclick/fastclick.min.js', 
      'site.js' 

     ], 
     'public/smartadmin/js/all.js', 
     'resources/assets/smartadmin/js'); 
    /*charts*/ 
     mix.scripts([ 
      'plugin/flot/jquery.flot.cust.min.js', 
      'plugin/flot/jquery.flot.resize.min.js', 
      'plugin/flot/jquery.flot.time.min.js', 
      'plugin/flot/jquery.flot.tooltip.min.js', 
      'plugin/vectormap/jquery-jvectormap-1.2.2.min.js', 
      'plugin/vectormap/jquery-jvectormap-world-mill-en.js', 
      'plugin/moment/moment.min.js', 
      'plugin/fullcalendar/jquery.fullcalendar.min.js', 
      'plugin/morris/raphael.min.js', 
      'plugin/morris/morris.min.js', 

     ], 
     'public/smartadmin/js/charts.js', 
     'resources/assets/smartadmin/js'); 

    /*stream datatable*/ 

    mix.scripts([ 
      'plugin/streamtable/stream_table.js', 
      'plugin/streamtable/mustache.js', 

     ], 
     'public/smartadmin/js/streamtable.js', 
     'resources/assets/smartadmin/js'); 

    /*stream table*/ 
    mix.scripts([ 
      'plugin/bootstrap-wizard/jquery.bootstrap.wizard.min.js', 
      'plugin/fuelux/wizard/wizard.min.js', 

     ], 
     'public/smartadmin/js/wizard.js', 
     'resources/assets/smartadmin/js'); 
    /*stream table*/ 
    mix.scripts([ 
      'plugin/streamtable/table.js', 

     ], 
     'public/smartadmin/js/table.js', 
     'resources/assets/smartadmin/js'); 

を:

 Asset  Size Chunks    Chunk Names 
fonts/glyphicons-halflings-regular.eot?f4769f9bdb7466be65088239c12046d1 20.1 kB [emitted] 
fonts/glyphicons-halflings-regular.svg?89889688147bd7575d6327160d64e760 109 kB [emitted] 
fonts/glyphicons-halflings-regular.ttf?e18bbf611f2a2e43afc071aa2f4e1512 45.4 kB [emitted] 
fonts/glyphicons-halflings-regular.woff?fa2772327f55d8198301fdb8bcfc8158 23.4 kB [emitted] 
fonts/glyphicons-halflings-regular.woff2?448c34a56d699c29117adc64c43affeb 18 kB [emitted] 
/js/app.js 1.17 MB 0 [emitted] [big] /js/app 
/css/app.css 683 kB 0 [emitted] [big] /js/app 
mix-manifest.json 66 bytes [emitted] 

を以前に私は私のパッケージに... をelixerを使用私が持っている.json:

{ 
"private": true, 
"scripts": { 
"dev": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 
"watch-poll": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --watch-poll --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 
}, 
"devDependencies": { 
"axios": "^0.15.3", 
"cross-env": "^3.2.3", 
"laravel-mix": "^0.8.8", 
"lodash": "^4.17.4", 
"vue": "^2.1.10", 
"webpack": "^2.2.1" 
}, 
"dependencies": { 
"express": "^4.15.2", 
"ioredis": "^2.5.0", 
"socket.io": "^1.7.3" 
} 
} 

私は修正するためにlaravelミックスのすべての方法を試してみましたこれはまたこれのための参照を見ますが、私は何か解決策を得ることができません、エリクサーを使用する可能性があります。 私は: Laravelミックス版:0.8.1 ノードバージョン(ノード-v):6.9.1 NPM版(NPM -v):4.2 OSを:Ubuntuの16.4 LTS

+0

エラーを貼り付けることはできますか?私は、パブリックフォルダ内のファイルを取得していない上に、私が言及した – TheFallen

+0

仲間... –

+0

私はlaravelミックスを更新しながら、私は – TheFallen

答えて

1

Upgrading to Laravel 5.4

Laravelティンカーは現在スタンドアローンのパッケージになっており、インストールは簡単です。

は、パッケージを必要とし、サービスプロバイダが含まれています

:それが終了すると

作曲は、あなたのconfig/app.phpファイルへのサービスプロバイダを追加し、laravel /ティンカー

が必要です

ララベル\ティンカー\ティンカーサービスプロバイダ

ブラウザキットを利用の

既存のテストはLaravel夕暮れに移行する必要があるかolder package含まれる次のいずれかlaravel /取得するには--dev

をブラウザキットテストの必要

作曲を最新のバージョンcomposer.jsonファイルを変更し、laravel/framework依存関係を5.4。*に変更します。

Source

+0

eorrors_な行く_but私はすでに –

+0

は、あなたが他の手順に従った。..それをインストール? – brotherperes

+0

yess。私はステップに従って.. btwありがとう.. –

関連する問題