请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

项目启动报错

(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

正在回答 回答被采纳积分+3

1回答

快乐动起来呀 2018-11-26 09:59:06

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

0 回复 有任何疑惑可以回复我~
  • 提问者 小含儿 #1
    跟着视频搭的项目,周五还可以跑起来。今天就报错跑不起来了项目!每次报错都不太一样!
    回复 有任何疑惑可以回复我~ 2018-11-26 10:04:45
  • 提问者 小含儿 #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 10:06:46
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信