vuedx / languagetools

A collection of tools for better IDE experience.
https://vuedx.com
MIT License
1.26k stars 29 forks source link

VueDX crashes on new Nuxt 3 project #310

Closed iKnowMagic closed 1 year ago

iKnowMagic commented 1 year ago

Describe the bug VueDX crashes on new Nuxt 3 project

To Reproduce Steps to reproduce the behavior:

  1. Create a Nuxt project with npx nuxi init nuxt-app
  2. Run yarn install inside the project's directory
  3. Run yarn nuxi typecheck inside the project's directory
  4. Install eslint with yarn add eslint -D
  5. Initialize eslint with yarn eslint --init

eslint questions / answers

? How would you like to use ESLint? … 
❯ To check syntax, find problems, and enforce code style

? What type of modules does your project use? … 
❯ JavaScript modules (import/export)

? Which framework does your project use? … 
❯ Vue.js

Does your project use TypeScript? › Yes

? Where does your code run? …
✔ Node

? How would you like to define a style for your project? … 
❯ Use a popular style guide

? Which style guide do you want to follow? … 
❯ Standard

? What format do you want your config file to be in? … 
❯ JavaScript

The config that you've selected requires the following dependencies:
....
? Would you like to install them now? › Yes

? Which package manager do you want to use? … 
❯ yarn
  1. Open app.vue and save the file
image

Expected behavior VueDX should work and the error should not appear.

Info (please complete the following information): MacOS with Nuxt 3

znck commented 1 year ago

I cannot reproduce it. Does this happen only in nuxt project?