项目启动报错

来源:7-2 首页Header开发-城市定位服务设计

小含儿

2018-11-26

(node:910) UnhandledPromiseRejectionWarning: Error: Could not compile template /Users/boeyxuan/mt-app/node_modules/@nuxt/vue-app/template/App.js: Cannot resolve “@/asses/css/main.css” from "/Users/boeyxuan/mt-app/asses/css/main.css"
at Promise.all.templatesFiles.map (/Users/boeyxuan/mt-app/node_modules/@nuxt/builder/dist/builder.js:6009:17)
(node:910) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:910) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[nodemon] clean exit - waiting for changes before restart

写回答

1回答

快乐动起来呀

2018-11-26

css模块没有解析出来,用的是脚手架搭的项目吗,参考下源码,尽量不要自己从0搭建项目

0
2
小含儿
cross-env NODE_ENV=development nodemon server/index.js --watch server --exec babel-node [nodemon] 1.18.6 [nodemon] to restart at any time, enter `rs` [nodemon] watching: /Users/boeyxuan/mt-app/server/**/* [nodemon] starting `babel-node server/index.js` ℹ info Preparing project for development ℹ info Initial build may take a while ✔ success Builder initialized (node:946) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, unlink '/Users/boeyxuan/mt-app/.nuxt/axios.js' (node:946) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:946) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [nodemon] clean exit - waiting for changes before restart
2018-11-26
共2条回复

Vue全家桶+SSR+Koa2全栈开发美团网

整合大前端8项技术,全面晋级全栈工程师,毕设/面试作品

2445 学习 · 1638 问题

查看课程