小编Sab*_*ran的帖子

vue webpack模板缺少解析器

我只是使用webpack模板设置一个vue项目,如下所示:http://vuejs-templates.github.io/webpack/

但是在运行npm run dev之后只是为了测试模板是否正常工作,我得到了这个错误:

Failed to compile with 2 errors                                                                                                                                                                                                                                                           21:49:02
 error  in ./src/App.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser.
    at normalize (path\node_modules\prettier\index.js:7051:13)
    at formatWithCursor (path\node_modules\prettier\index.js:10370:12)
    at path\node_modules\prettier\index.js:31115:15
    at Object.format (path\node_modules\prettier\index.js:31134:12)
    at Object.module.exports (path\node_modules\vue-loader\lib\template-compiler\index.js:80:23)

 @ ./src/App.vue 11:0-354
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

 error  in ./src/components/HelloWorld.vue

Module build failed: Error: No parser and no file path given, couldn't infer a parser.
    at normalize (path\node_modules\prettier\index.js:7051:13)
    at formatWithCursor (path\node_modules\prettier\index.js:10370:12)
    at …
Run Code Online (Sandbox Code Playgroud)

webpack vue.js prettier

40
推荐指数
3
解决办法
7313
查看次数

Cloud Firestore:基于对象内容过滤(通过Flutter)

我正在使用以下Firestore设置:

在此输入图像描述

现在我想收到当前用户(给定的uid)在users对象/列表中的所有文档.users是对用户集合的引用对象.

理想情况下,我想使用来自Flutter的这个过滤器和cloud_firestore包,但是现在我只是感兴趣,如果这是可能的话.

dart firebase flutter google-cloud-firestore

5
推荐指数
1
解决办法
2593
查看次数