Different inspection results on the similar code.

Hi, thank you for the good IDE.

I am writing frontend side with Vue(with Typescript) under the server written in Go. The above screenshot shows that two different projects are opened by Goland at the same time. These projects are based on the one project, so they are similar.

However, as you see, the inspections show different.

1. When I mouseover on the red line it shows popup saying `Vue: Type string | undefined is not assignable to type RouteLocationRaw`

2. When I mouseover on the variable `loginPath` of both projects, both show same popups saying `const loginPath: string | undefined`

3. The `package.json` files are same. Also, I have run `npm install` on both projects.

4. The `Inspections` Settings of IDE: I did not fully checked but they seem to be same. (same profile, `Project Default`).

5. The `ESLint` Settings of IDE are same, The `.eslintrc.json` files are also same.

6. I have tried `File > Invalidate cache…` of IDE menu bar.

7. Both are compiled well.

8. The ‘red line’ was not caught by `eslint` command: `eslint --ext .js,.ts,.vue src`

0

The error comes from the Vue language server, as far as I can see from the error text. What do your settings in Settings | Languages & Frameworks | TypeScript | Vue look like (in both projects)? Do you have a sample project you can share that reproduces the issue?

0

请先登录再写评论。