0

Im using laravel 5.2

Package.json

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "bootstrap-sass": "^3.0.0",
    "gulp": "^3.9.1",
    "laravel-elixir": "^5.0.0",
    "laravel-elixir-webpack": "^1.0.1",
    "laravel-elixir-webpack-official": "^1.0.2",
    "laravel-mix": "^2.1.14",
    "lodash": "^4.16.2",
    "vue": "^2.0.1",
    "vue-resource": "^1.0.3",
    "webpack": "^2.7.0"
  },
  "dependencies": {
    "get-ssl-certificate": "^2.1.2",
    "laravel-elixir-webpack-official": "^1.0.2",
    "vuedraggable": "^2.16.0"
  }
}

I tried both firefox and google chrome extension which says its disabled This is the line that restrict this

   devtools: process.env.NODE_ENV !== 'production'

to my two sense this must NOT happen. Steps I took till now :

1- remove node_models install it again using npm install

2- replacing the vue file with a version provided in Vuejs.org

the icon is there colorful but no Veo devtool, when i use CDN on top of my header instead i get the devtools! What is causing this conflict! Im confused thanks for any help

4

1 回答 1

0

好吧,长话短说,问题是因为它没有编译我的文件,并且 devmode 在它之前编译的版本中是关闭的。我试图在 laravel 5.2 上使用 vue,遇到了很多问题,所以我决定通过以下方式安装 laravel 5.3:

composer create-project --prefer-dist laravel/laravel myapp "5.3.0"

之后我执行:

  npm install

它开始安装依赖项和所有内容,完成后我测试了gulp命令以查看它是否成功编译。所以我将package.json package-lock.jsongulpfile.js从我的 Laravel 5.3 移动到 laravel 5.2 再次运行 npm install 并完成!

于 2018-09-05T10:33:45.483 回答