Akryum / Akryum/vue-cli-plugin-apollo

Issue with Prettier

Đang mở
#25 3 bình luận 2 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
JavaScript
Star
477
Fork
109
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When issuing `yarn run serve` with a basic install except I routed to the ApolloExample component I am getting the following error:

```Failed to compile with 4 errors 14:49:54
error in ./src/graphql/MessageAdd.gql

Syntax Error: Unexpected Name "ESLintPluginGraphQLFile" (1:1)
> 1 | ESLintPluginGraphQLFile`#import "./MessageFragment.gql"
| ^
2 |
3 | mutation messageAdd ($input: MessageInput!) {
4 | messageAdd (input: $input) {
at Array.forEach ()

@ ./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ApolloExample.vue?vue&type=script&lang=js 66:0-61 86:20-40
@ ./src/components/ApolloExample.vue?vue&type=script&lang=js
@ ./src/components/ApolloExample.vue
@ ./src/router.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
```

This could be related to [this](https://github.com/prettier/eslint-plugin-prettier/issues/81)?

I confirmed that the above does not happen when I repeat all steps but select `eslint with standard` instead of `eslint with prettier`.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.