blitz-js / blitz-js/legacy-framework

VSCode autocomple defaults to `next` instead of `blitz`

Open
#21 2 comments 2 reactions 0 assignees View on GitHub
kind/bug legacy-framework status/ready-to-work-on
Dominant language
JavaScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### What is the problem?

When typing, for example, `invoke` in VSCode and hitting Enter, it will import it from `next/data-client` instead of `blitz`:

![Screenshot](https://user-images.githubusercontent.com/16712703/135733636-bafefdd4-b63b-4977-aa2d-0d147074839b.png)

### Paste all your error logs here:

-

### Paste all relevant code snippets here:

-

### What are detailed steps to reproduce this?

1. Open a project in VS Code
2. Try to auto import

### Run `blitz -v` and paste the output here:

```
Linux 5.14 | linux-x64 | Node: v14.17.3

blitz: 0.40.0-canary.9 (local)

Package manager: yarn
System:
OS: Linux 5.14 Fedora 34 (Workstation Edition) 34 (Workstation Edition)
CPU: (12) x64 AMD Ryzen 5 3600XT 6-Core Processor
Memory: 1.63 GB / 31.29 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.3 - /tmp/xfs-931d46ba/node
Yarn: 3.0.2 - /tmp/xfs-931d46ba/yarn
npm: 6.14.13 - /tmp/fnm_multishells/12090_1633194003503/bin/npm
Watchman: Not Found
npmPackages:
@prisma/client: ^3.1.1 => 3.1.1
blitz: canary => 0.40.0-canary.9
prisma: 3.1.1 => 3.1.1
react: alpha => 18.0.0-alpha-bdd6d5064-20211001
react-dom: alpha => 18.0.0-alpha-bdd6d5064-20211001
typescript: ^4.4.3 => 4.4.3
```

### Please include below any other applicable logs and screenshots that show your problem:

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.