1. 程式人生 > >建立vue專案錯誤 Error: No parser and no file path given, couldn't infer a parser

建立vue專案錯誤 Error: No parser and no file path given, couldn't infer a parser

原因是prettier 更新到1.13.1導致的
component-compiler-utils 1.3.1 已經更新修復了.

現在不需要把1.13.1 降級了

error
in ./src/App.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser.

at normalize (F:\WebStormProjects\a9043-blog-mobile\node_modules\prettier\index.js:7051:13)
at formatWithCursor (F:\W
ebStormProjects\a9043-blog-mobile\node_modules\prettier\index.js:10370:12) at F:\WebStormProjects\a9043-blog-mobile\node_modules\prettier\index.js:31115:15 at Object.format (F:\WebStormProjects\a9043-blog-mobile\node_modules\prettier\index.js:31134:12) at Object.module.exports (F:\WebStormProjects\a9043-blog-mobile\n
ode_modules\vue-loader\lib\template-compiler\index.js:80:23)
解決辦法

npm install --save-dev [email protected]

npm run dev


相關推薦

建立vue專案錯誤 Error: No parser and no file path given, couldn't infer a parser

原因是prettier 更新到1.13.1導致的component-compiler-utils 1.3.1 已經更新修復了. 現在不需要把1.13.1 降級了error in ./src/App.vueModule build failed: Error: No pars

vue專案建立時報錯:Module build failed: Error: No parser and no file path given, couldn't infer a parser.

在建立一個vue專案啟動時報錯,報錯的內容為: error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn’t infer a p

vue報錯Module build failed: Error: No parser and no file path given, couldn't infer a parser.解決辦法

今天中午更新的專案,vue模組裡子模組報錯百度查詢  今天下午1點多吧  貌似git 新版本給解決了   只需一步 更新即可npm i [email protected]~1.12.0 這個是降版本 因為是更新成1.13.0崩的 不過官網更新了 1.13

vue.js報錯:Module build failed: Error: No parser and no file path given, couldn't infer a parser.

npm run dev  時報錯解決方式:npm i [email protected]~1.12.0然後在npm run dev參考:https://www.cnblogs.com/wntd

vue-cli 報Module build failed: Error: No parser and no file path given, couldn't infer a parser

前兩天升級了一個 npm 、 webpack、vue 等等。。。新建立一個vue專案發現報這個錯,,,Module build failed: Error: No parser and no file path given, couldn't infer a parser沒有

No parser and no file path given, couldn't infer a parser

使用vue-cli 腳手架建立專案後,執行 npm run dev 時出現了異常:目測是prettier出了問題,查了下,是因為prettier的版本太新了執行.\node_modules\.bin\prettier -v檢視下版本,是1.13.0那就降級,執行npm ins

Vue報錯】Module build failed: Error: No parser and no file path given, couldn't infer a p arser.

3.0 OS could modules exp ports -- hot loader 在創建一個vue項目啟動時報錯,報錯的內容為: error in ./src/App.vue Module build failed: Error: No parser and no

vue報錯Module build failed: Error: No parser and no file path given, couldn't infer a parser.解決辦法

今天中午更新的專案,vue模組裡子模組報錯 百度查詢  今天下午1點多吧  貌似git 新版本給解決了   只需一步 更新即可 npm i [email protected]~1.12.0 這個是降版本 因為是更新成1.13.0崩的 不過官網

vue建立vue專案

建立vue專案 在程式開發中,有三種方式建立vue專案,本地引入vuejs、使用cdn引入vuejs、使用vue-cli建立vue專案。其中vue-cli可以結合webpack打包工具使用,大大方便了開發步驟,使用廣泛。 vue本地引用 在官網下載vue.js,通過script標籤引入。

用 webpack 建立 vue 專案

    1、安裝支援webpack 包 npm i -D  webpack webpack-cli  aspnet-webpack webpack-dev-middleware  webpack-hot-middleware 

vue-cli建立vue專案

1,配置淘寶映象(可選) 為什麼說可選,npm的install都是走的下載,有時候下載速度太慢的話,通過配置淘寶映象可以提速  npm install -g cnpm --registry=https://registry.npm.taobao.org 2,安裝npm c

_____[BUG]記錄一個jdk安裝錯誤 error: open of failed:No such file or directory

今天在一臺新機器, 採用rpm方式安裝jdk, rpm -ivh jdk-8u181-linux-i586.rpm  安裝過程發生了錯誤, 錯誤資訊包含大量的html相關資訊: error: open of <html> failed: No such f

npm建立vue專案

  1、node.js官網下載node,並安裝; 安裝 2、window+R快捷鍵開啟cmd npm config set prefix "D:\nodejs\node_global" npm config set cache "D:\nodej

通過命令建立vue專案

環境要求:  安裝有 Node.js、 vue、 vue-cli 。 建立專案: vue init webpack projectName 進入專案,下載依賴: npm install 或者 cnpm install 執行專案: npm run d

npm包管理 vue-cli建立vue專案

title: NPM VUE-CLI node npm npm管理專案 npm init -y npm install [email protected] npm uninstall xxx

Idea 匯入 MyEclipse專案 錯誤 Error:(1, 1) java: 非法字元: \65279

在用idea匯入myeclipse導過的專案時,報錯 Error:(1, 1) java: 非法字元: \65279 Error:(1, 10) java: 需要class, interface或enum 網上找的的產生原因: IntelliJ IDEA對設定為“UTF-8”編碼的檔案在修改後儲存時

Vue筆記——搭建腳手架並快速建立Vue專案

現在的Vue腳手架已經升級到3.x版本,即vue-cli3。 腳手架升級之後,安裝的命令發生了變化,所以這篇文章會跟大家演示新舊版本的腳手架安裝過程。 下面的安裝過程均是在window平臺下安裝。 一、準備工作 1. 安裝node.js和npm Vue的腳手

webStorm建立vue專案環境

一、安裝node.js(https://nodejs.org/en/) 下載完畢後,可以安裝node,建議不要安裝在系統盤(如C:)。   二、設定nodejs prefix(全域性)和cache(快取)路徑 1、在nodejs安裝路徑下,新建node_glob

關於新手入門建立vue專案的填坑報告

經過我反覆多次的實踐,根據網上各位大佬的經驗分享,終於將這個大坑填好了,記錄一下,以方便下次填坑用。 基本步驟是根據下面這篇部落格:https://blog.csdn.net/bruceyangjie/article/details/70168985; 但是我遇到了自己的問題: 1、進入專案目錄之後再npm