leebenson / reactql

Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
https://reactql.org
MIT License
1.82k stars 173 forks source link

import X from "y" #174

Closed pomazanbohdan closed 5 years ago

pomazanbohdan commented 5 years ago

VsCode all import X from "y" print error. image

Need " -> '

image

leebenson commented 5 years ago

I'm not able to reproduce this locally. Seems very odd that switching from double quotes to single quotes would make any material difference - both are valid JS/TS representations of strings.

Usually this kinda thing indicates either:

a) VSCode hasn't caught up. Try restarting your editor.

b) There's some linting plugin that dislikes one string style vs. another. I use Prettier and double-quote strings. The fact that "path" isn't yielding any errors in your screenshots, probably means this is not a linting issue.

I've guess (a) above.

pomazanbohdan commented 5 years ago

Prettier