Hide network messages
All
Errors
Warnings
Info
Logs
Debug
Handled
(unknown) You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
3
(unknown) [Vue warn]: Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as
[Vue warn]: Failed to mount component: template or render function not defined.
(found in component at E:\wamp\www\laravel\resources\assets\js\components\admin\DeleteMenuTypeButton.vue)
app.js:164 [Vue warn]: Error compiling template:
<divid="app"><navclass="navbar navbar-default navbar-static-top"><divclass="container"><divclass="navbar-header"><!-- Collapsed Hamburger --><buttontype="button"class="navbar-toggle collapsed"data-toggle="collapse"data-target="#app-navbar-collapse"><spanclass="sr-only">Toggle Navigation</span><spanclass="icon-bar"></span><spanclass="icon-bar"></span><spanclass="icon-bar"></span></button><!-- Branding Image --><aclass="navbar-brand"href="http://www.zt.com">
Laravel
</a></div><divclass="collapse navbar-collapse"id="app-navbar-collapse"><!-- Left Side Of Navbar --><ulclass="nav navbar-nav">
</ul><!-- Right Side Of Navbar --><ulclass="nav navbar-nav navbar-right"><!-- Authentication Links --><liclass="dropdown"><ahref="#"class="dropdown-toggle"data-toggle="dropdown"role="button"aria-expanded="false">
lg23 <spanclass="caret"></span></a><ulclass="dropdown-menu"role="menu"><li><ahref="http://www.zt.com/logout"onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
Logout
</a><formid="logout-form"action="http://www.zt.com/logout"method="POST"style="display: none;"><inputtype="hidden"name="_token"value="7lDAmYX8rUc1F2wwUN9DT6IMKs8rq6vzu1JtL0MI"></form></li></ul></li></ul></div></div></nav><!-- 配置文件 --><scripttype="text/javascript"src="http://www.zt.com/vendor/ueditor/ueditor.config.js"></script><!-- 编辑器源码文件 --><scripttype="text/javascript"src="http://www.zt.com/vendor/ueditor/ueditor.all.js"></script><script>window.UEDITOR_CONFIG.serverUrl = '/ueditor/server'</script><divclass="container"><divclass="row"><divclass="col-md-8 col-md-offset-1"><divclass="panel panel-default"><divclass="panel-heading">
为什么你总是让我失望
<aclass="topic pull-right"href="/topic/1">php</a><aclass="topic pull-right"href="/topic/19">Route</a></div><divclass="panel-body content"><p>现在社会压力大,科技智能让人何去何从,科技发展对人类真的有益。</p></div><divclass="edit-actions"><spanclass="edif"><ahref="/questions/7/edit">编 辑</a></span><formaction="/questions/7"method="post"class="delete-form"><inputtype="hidden"name="_method"value="DELETE"><inputtype="hidden"name="_token"value="7lDAmYX8rUc1F2wwUN9DT6IMKs8rq6vzu1JtL0MI"><buttonclass="button is-naked delete-button">删 除</button></form></div></div></div><divclass="col-md-3"><divclass="panel panel-default"><divclass="panel-heading question-follow"><h2>1</h2><span>关注者</span></div><divclass="panel-body"><!-- <a href="/question/7/follow" class="btn btn-default btn-success">
已关注
</a>
--><question-follow-button></question-follow-button><ahref="#editor"class="btn btn-primary">撰写答案</a></div></div></div><divclass="col-md-8 col-md-offset-1"><divclass="panel panel-default"><divclass="panel-heading">
2个回复
</div><divclass="panel-body"><divclass="media"><divclass="media-left"><ahref=""><imgclass="top-margin"width="36"src="/images/avatart/user.png"alt="lg23"></a></div><divclass="media-body"><h4class="media-heading top-margin"><ahref="/user/lg23">
lg23
</a></h4><p>除了努力,还是努力!</p></div></div><divclass="media"><divclass="media-left"><ahref=""><imgclass="top-margin"width="36"src="/images/avatart/user.png"alt="lg23"></a></div><divclass="media-body"><h4class="media-heading top-margin"><ahref="/user/lg23">
lg23
</a></h4><p>镇妮同学,你为什么老是口事心非???</p></div></div><formaction="/questions/7/answer"method="post"><inputtype="hidden"name="_token"value="7lDAmYX8rUc1F2wwUN9DT6IMKs8rq6vzu1JtL0MI"><divclass="form-group"><!-- 编辑器容器 --><!-- 非转义可能引起攻击,需要过滤 --><scriptid="container"name="body"type="text/plain"style="height:120px;"></script></div><buttonclass="btn btn-success pull-right"type="submit">提交回复</button></form></div></div></div></div></div></div>
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
(found in <Root>)warncompileToFunctionsVue$3.$mountVue._initVue$3(anonymous function)(anonymous function) @ app.js:164__webpack_require__ @ app.js:20(anonymous function) @ app.js:64(anonymous function) @ app.js:67
/**
* First we will load all of this project's JavaScript dependencies which
* include Vue and Vue Resource. This gives a great starting point for
* building robust, powerful web applications using Vue and Laravel.
*/require('./bootstrap');
/**
* Next, we will create a fresh Vue application instance and attach it to
* the body of the page. From here, you may begin adding components to
* the application, or feel free to tweak this setup for your needs.
*/
Vue.component('example', require('./components/Example.vue'));
Vue.component('question-follow-button', require('./components/QuestionFollowButton.vue'));
const app = new Vue({
el: 'body'
});
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/window.$ = window.jQuery = require('jquery');
require('bootstrap-sass');
require('./select2.min');
/**
* Vue is a modern JavaScript library for building interactive web interfaces
* using reactive data binding and reusable components. Vue's API is clean
* and simple, leaving you to focus on building your next great project.
*/window.Vue = require('vue');
require('vue-resource');
/**
* We'll register a HTTP interceptor to attach the "CSRF" header to each of
* the outgoing requests issued by this application. The CSRF middleware
* included with Laravel will automatically verify the header's value.
*/
Vue.http.interceptors.push((request, next) => {
request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken;
next();
});
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/// import Echo from "laravel-echo"// window.Echo = new Echo({// broadcaster: 'pusher',// key: 'your-pusher-key'// });
vue.js?3de6:564[Vue warn]: Error compiling template:
– Templates should only be responsible for mapping the state tothe UI. Avoid placing tags with side-effects in your templates, such as , as they will not be parsed.
– Templates should only be responsible for mapping the state tothe UI. Avoid placing tags with side-effects in your templates, such as , as they will not be parsed.
– Templates should only be responsible for mapping the state tothe UI. Avoid placing tags with side-effects in your templates, such as , as they will not be parsed.
ueditor.all.js:29264 Uncaught TypeError: Cannot read property 'offsetWidth' of null
at UE.Editor.renderUI (http://www.zt.com/vendor/ueditor/ueditor.all.js:29264:75)
at UE.Editor.fireEvent (http://www.zt.com/vendor/ueditor/ueditor.all.js:1619:38)
at langReadied (http://www.zt.com/vendor/ueditor/ueditor.all.js:6566:12)
at http://www.zt.com/vendor/ueditor/ueditor.all.js:6748:17
at HTMLScriptElement.element.onload.element.onreadystatechange (http://www.zt.com/vendor/ueditor/ueditor.all.js:921:29)
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set'always_populate_raw_post_data'to'-1'in php.ini anduse the php://input stream instead. inUnknownon line 0Warning: Cannot modify header information - headers already sent inUnknownon line 0
{"followed":false}
zcdll@zcdll-Infisa:~/Coder/test/php/laravel-5.4.23$ npm run dev
> @ dev /home/zcdll/Coder/test/php/laravel-5.4.23
> npm run development
> @ development /home/zcdll/Coder/test/php/laravel-5.4.23
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
95% emitting
ERROR Failed to compile with 2 errors 15:49:23
These dependencies were not found:
* /home/zcdll/Coder/test/php/laravel-5.4.23/resources/assets/js/app.js in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
* /home/zcdll/Coder/test/php/laravel-5.4.23/resources/assets/sass/app.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
To install them, you can run: npm install --save /home/zcdll/Coder/test/php/laravel-5.4.23/resources/assets/js/app.js /home/zcdll/Coder/test/php/laravel-5.4.23/resources/assets/sass/app.scss
Asset Size Chunks Chunk Names
/js/app.js 2.96 kB 0 [emitted] /js/app
mix-manifest.json 32 bytes [emitted]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/zcdll/.npm/_logs/2017-07-12T07_49_23_869Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/zcdll/.npm/_logs/2017-07-12T07_49_23_910Z-debug.log
These dependencies were not found:
* /home/zcdll/Coder/test/php/laravel-5.4.23/resources/assets/js/app.js in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
* /home/zcdll/Coder/test/php/laravel-5.4.23/resources/assets/sass/app.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
我把 laravel-mix 升级到 v1.2.0 之后,运行 npm run dev 报新的错误了。。
zcdll@zcdll-Infisa:~/Coder/test/php/laravel-5.4.23$ npm run dev
> @ dev /home/zcdll/Coder/test/php/laravel-5.4.23
> npm run development
> @ development /home/zcdll/Coder/test/php/laravel-5.4.23
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
events.js:163throw er; // Unhandled 'error' event
^
Error: spawn node_modules/webpack/bin/webpack.js ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3npm ERR! code ELIFECYCLE
npm ERR! errno 1npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log ofthis run can be found in:
npm ERR! /home/zcdll/.npm/_logs/2017-07-12T11_55_06_890Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log ofthis run can be found in:
npm ERR! /home/zcdll/.npm/_logs/2017-07-12T11_55_06_921Z-debug.log
zcdll@zcdll-Infisa:~/Coder/test/php/laravel-git$ npm run dev
> @ dev /home/zcdll/Coder/test/php/laravel-git
> npm run development
> @ development /home/zcdll/Coder/test/php/laravel-git
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
95% emitting
ERROR Failed to compile with 2 errors 20:12:12
These dependencies were not found:
* /home/zcdll/Coder/test/php/laravel-git/resources/assets/sass/app.scss in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
* /home/zcdll/Coder/test/php/laravel-git/resources/assets/js/app.js in multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
To install them, you can run: npm install --save /home/zcdll/Coder/test/php/laravel-git/resources/assets/sass/app.scss /home/zcdll/Coder/test/php/laravel-git/resources/assets/js/app.js
Asset Size Chunks Chunk Names
/js/app.js 2.8 kB 0 [emitted] /js/app
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/zcdll/.npm/_logs/2017-07-12T12_12_13_257Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/zcdll/.npm/_logs/2017-07-12T12_12_13_291Z-debug.log
npm ERR! Linux 4.4.0-66-generic
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “run” "development"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script ‘cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/Code/zhihu-app/npm-debug.log
jelly 老师 !
laravel5.4
执行 npm run development 后就上面了?
POST http://localhost/api/question/follower 405 (Method Not Allowed);4:1 Uncaught (in promise)
Response {url:"/api/question/follower", ok:false, status:405, statusText:"Method Not Allowed", headers: Headers…}
···
vue.js?d16f:7864 Download the Vue Devtools extension for a better development experience: https://github.com/vuejs/vue-devtools
vue.js?d16f:7874 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
···