Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant Error: Cannot find module 'typescript' #437

Closed
speechless2 opened this issue May 17, 2024 · 19 comments
Closed

Constant Error: Cannot find module 'typescript' #437

speechless2 opened this issue May 17, 2024 · 19 comments

Comments

@speechless2
Copy link

Environment

Operating System: Linux

  • Node Version: v21.6.1
  • Nuxt Version: 3.11.2
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Package

@nuxt/eslint

Reproduction

Fresh install of nuxt3 and nuxt-eslint module, just followed the tutorial

Describe the bug

Once i finished the tutorial on how to use:

https://eslint.nuxt.com/packages/module#quick-setup
with this command:

npx nuxi module add eslint

and try to yarn lint

i got this error:

Oops! Something went wrong! :(

ESLint: 9.3.0

Error: Cannot find module 'typescript'
Require stack:

Additional context

No response

Logs

No response

@mstflotfy
Copy link

Just had the same issue.
Not sure this is the best approach, but I installed typescript as a dev dependency then it worked.

@shinGangan
Copy link
Contributor

shinGangan commented May 20, 2024

Hi @speechless2 , @mstflotfy !

I think this problem is specific to yarn, but what do you think?

I conducted experiments with pnpm and npm, but I could not confirm any similar problems.
However, a similar problem was confirmed when performing operational experiments with yarn.

Therefore, I don't think it's a yarn issue rather than a Nuxt ESLint issue.

@mstflotfy
Copy link

Hey @shinGangan,

I just installed the module using: npx nuxi module add eslint in a fresh bunand npm projects, and it worked without issues. It does seem that this problem is specific to yarn.

@shinGangan
Copy link
Contributor

Hi @mstflotfy , thanks for your comment!
I'm glad the experiment results were the same. 💚

If there is a problem on yarn side, it may be okay to close this issue. 🤔

@shinGangan
Copy link
Contributor

Hi @speechless2 , has the problem been resolved?
Or is it still happening?

@adamreisnz
Copy link

adamreisnz commented Jun 22, 2024

Still happening when using yarn

@antfu
Copy link
Member

antfu commented Jun 25, 2024

What's the yarn version you are having? Could anyone share a minimal reproduction with the yarn version and lockfile? Thanks

@adamreisnz
Copy link

adamreisnz commented Jun 26, 2024

I have used yarn 4.3.1. Here's steps to reproduce:

  • Node 22.1.0
  • npx nuxi@latest init eslint-issue
  • cd eslint-issue
  • rm -rf node_modules
  • rm -yarn.lock
  • yarn set version berry
  • yarn config set nodeLinker node-modules
  • npx nuxi module add eslint
  • I added a couple more ESLint related dependencies:

Package.json

{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "dependencies": {
    "@nuxt/eslint": "^0.3.13",
    "nuxt": "^3.12.2"
  },
  "devDependencies": {
    "@eslint/js": "^9.5.0",
    "eslint": "^9.5.0",
    "eslint-plugin-vue": "^9.26.0"
  },
  "packageManager": "[email protected]"
}

And then create this eslint.config.mjs file in your project root:

import js from '@eslint/js'
import vue from 'eslint-plugin-vue'
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt(
  js.configs.recommended,
  ...vue.configs['flat/recommended'],
  {
    ignores: [
      '*.ts',
      'node_modules',
      'public',
    ],
    languageOptions: {
      ecmaVersion: 'latest',
      sourceType: 'module',
    },
    rules: {
      //Because auto imports -.-
      'no-undef': 'off',
    },
  }
)

Run yarn (and note warning about ESLint version)

eslint is listed by your project with version 9.5.0 (p49b75), which doesn't satisfy what @nuxt/eslint and other dependencies request (^8.57.0).

Restart ESLint server in VSCode, and observe output:

Uncaught exception received.
Error: Cannot find module 'typescript'
Require stack:
- /eslint-issue/node_modules/@typescript-eslint/typescript-estree/dist/convert.js

Unfortunately I can't attach the yarn.lock file as it is too long. But the above steps are just a clean nuxt install and ESLint module addition.

Adding yarn add -D typescript and restarting ESLint server again fixes the issue and ESLint runs fine.

As I don't use TypeScript in the project at all, it's a bit strange that I have to explicitly add it to my package.json, and that there is no easy configuration option to simply disable it so I don't need to use all these related dependencies. How can we opt-out of Typescript?

Let me know if you need any further information.

@antfu
Copy link
Member

antfu commented Jun 26, 2024

@adamreisnz Thanks for the info - but I am sorry this is not a reproduction, it's better if you could create a temporary repo with all the files you have. See: https://antfu.me/posts/why-reproductions-are-required

@adamreisnz
Copy link

I will see what I can do

@adamreisnz
Copy link

Here you go @antfu , let me know if this works for you:

https://github.com/adamreisnz/nuxt-eslint-reproduction/tree/issue-437

@adamreisnz
Copy link

I've also put together a reproduction in #461 for the other issue I'm experiencing. In that branch you can see that the linter works once you manually add typescript to the package.json file

@adamreisnz
Copy link

Any update on no longer requiring TypeScript when using this module?

@antfu antfu closed this as completed in 77bc797 Jul 27, 2024
@adamreisnz
Copy link

Thank you @antfu !

tobiasdiez pushed a commit to nuxt-modules/storybook that referenced this issue Aug 3, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@iconify-json/heroicons](https://icon-sets.iconify.design/heroicons/)
| [`1.1.22` ->
`1.1.23`](https://renovatebot.com/diffs/npm/@iconify-json%2fheroicons/1.1.22/1.1.23)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@iconify-json%2fheroicons/1.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@iconify-json%2fheroicons/1.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@iconify-json%2fheroicons/1.1.22/1.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@iconify-json%2fheroicons/1.1.22/1.1.23?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@iconify-json/simple-icons](https://icon-sets.iconify.design/simple-icons/)
| [`1.1.109` ->
`1.1.111`](https://renovatebot.com/diffs/npm/@iconify-json%2fsimple-icons/1.1.109/1.1.111)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@iconify-json%2fsimple-icons/1.1.111?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@iconify-json%2fsimple-icons/1.1.111?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@iconify-json%2fsimple-icons/1.1.109/1.1.111?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@iconify-json%2fsimple-icons/1.1.109/1.1.111?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@nuxt/eslint](https://togithub.com/nuxt/eslint)
([source](https://togithub.com/nuxt/eslint/tree/HEAD/packages/module)) |
[`0.3.13` ->
`0.4.0`](https://renovatebot.com/diffs/npm/@nuxt%2feslint/0.3.13/0.4.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@nuxt%2feslint/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@nuxt%2feslint/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@nuxt%2feslint/0.3.13/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nuxt%2feslint/0.3.13/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@nuxt/eslint-config](https://togithub.com/nuxt/eslint)
([source](https://togithub.com/nuxt/eslint/tree/HEAD/packages/eslint-config))
| [`0.3.13` ->
`0.4.0`](https://renovatebot.com/diffs/npm/@nuxt%2feslint-config/0.3.13/0.4.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@nuxt%2feslint-config/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@nuxt%2feslint-config/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@nuxt%2feslint-config/0.3.13/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nuxt%2feslint-config/0.3.13/0.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@nuxt/test-utils](https://togithub.com/nuxt/test-utils) | [`3.13.1`
->
`3.14.0`](https://renovatebot.com/diffs/npm/@nuxt%2ftest-utils/3.13.1/3.14.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@nuxt%2ftest-utils/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@nuxt%2ftest-utils/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@nuxt%2ftest-utils/3.13.1/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nuxt%2ftest-utils/3.13.1/3.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| @​nuxt/ui-pro | [`1.3.1` ->
`1.4.0`](https://renovatebot.com/diffs/npm/@nuxt%2fui-pro/1.3.1/1.4.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/@nuxt%2fui-pro/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@nuxt%2fui-pro/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@nuxt%2fui-pro/1.3.1/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@nuxt%2fui-pro/1.3.1/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@pinia/nuxt](https://togithub.com/vuejs/pinia/tree/v2/packages/nuxt#readme)
([source](https://togithub.com/vuejs/pinia)) | [`0.5.1` ->
`0.5.2`](https://renovatebot.com/diffs/npm/@pinia%2fnuxt/0.5.1/0.5.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/@pinia%2fnuxt/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@pinia%2fnuxt/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@pinia%2fnuxt/0.5.1/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@pinia%2fnuxt/0.5.1/0.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@vitejs/plugin-vue](https://togithub.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#readme)
([source](https://togithub.com/vitejs/vite-plugin-vue/tree/HEAD/packages/plugin-vue))
| [`5.1.0` ->
`5.1.2`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-vue/5.1.0/5.1.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-vue/5.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitejs%2fplugin-vue/5.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitejs%2fplugin-vue/5.1.0/5.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-vue/5.1.0/5.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@vitest/coverage-v8](https://togithub.com/vitest-dev/vitest/tree/main/packages/coverage-v8#readme)
([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8))
| [`2.0.4` ->
`2.0.5`](https://renovatebot.com/diffs/npm/@vitest%2fcoverage-v8/2.0.4/2.0.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@vitest%2fcoverage-v8/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitest%2fcoverage-v8/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitest%2fcoverage-v8/2.0.4/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitest%2fcoverage-v8/2.0.4/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [chromatic](https://www.chromatic.com)
([source](https://togithub.com/chromaui/chromatic-cli)) | [`11.5.6` ->
`11.7.0`](https://renovatebot.com/diffs/npm/chromatic/11.5.6/11.7.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/chromatic/11.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/chromatic/11.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/chromatic/11.5.6/11.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chromatic/11.5.6/11.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [eslint](https://eslint.org)
([source](https://togithub.com/eslint/eslint)) | [`9.7.0` ->
`9.8.0`](https://renovatebot.com/diffs/npm/eslint/9.7.0/9.8.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint/9.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint/9.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint/9.7.0/9.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint/9.7.0/9.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vite](https://vitejs.dev)
([source](https://togithub.com/vitejs/vite/tree/HEAD/packages/vite)) |
[`5.3.4` -> `5.3.5`](https://renovatebot.com/diffs/npm/vite/5.3.4/5.3.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/5.3.4/5.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/5.3.4/5.3.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vitest](https://togithub.com/vitest-dev/vitest)
([source](https://togithub.com/vitest-dev/vitest/tree/HEAD/packages/vitest))
| [`2.0.4` ->
`2.0.5`](https://renovatebot.com/diffs/npm/vitest/2.0.4/2.0.5) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vitest/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vitest/2.0.4/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vitest/2.0.4/2.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vue](https://togithub.com/vuejs/core/tree/main/packages/vue#readme)
([source](https://togithub.com/vuejs/core)) | [`3.4.33` ->
`3.4.35`](https://renovatebot.com/diffs/npm/vue/3.4.33/3.4.35) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vue/3.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vue/3.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vue/3.4.33/3.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue/3.4.33/3.4.35?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vue-router](https://togithub.com/vuejs/router) | [`4.4.0` ->
`4.4.2`](https://renovatebot.com/diffs/npm/vue-router/4.4.0/4.4.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vue-router/4.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vue-router/4.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vue-router/4.4.0/4.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue-router/4.4.0/4.4.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [vue-tsc](https://togithub.com/vuejs/language-tools)
([source](https://togithub.com/vuejs/language-tools/tree/HEAD/packages/tsc))
| [`2.0.28` ->
`2.0.29`](https://renovatebot.com/diffs/npm/vue-tsc/2.0.28/2.0.29) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vue-tsc/2.0.29?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vue-tsc/2.0.29?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vue-tsc/2.0.28/2.0.29?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vue-tsc/2.0.28/2.0.29?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>nuxt/eslint (@&#8203;nuxt/eslint)</summary>

### [`v0.4.0`](https://togithub.com/nuxt/eslint/releases/tag/v0.4.0)

[Compare
Source](https://togithub.com/nuxt/eslint/compare/v0.3.13...v0.4.0)

#####    🚀 Features

- Upgrade `@types/eslint`  -  by
[@&#8203;antfu](https://togithub.com/antfu)
[<samp>(ebc8f)</samp>](https://togithub.com/nuxt/eslint/commit/ebc8f2c)
- Enable `features.typescript` only when `typescript` is installed
locally, fix [#&#8203;437](https://togithub.com/nuxt/eslint/issues/437)
 -  by [@&#8203;antfu](https://togithub.com/antfu) in
[nuxt/eslint#437
[<samp>(77bc7)</samp>](https://togithub.com/nuxt/eslint/commit/77bc797)
- Include nitro unimport to `globals` as well, close
[#&#8203;461](https://togithub.com/nuxt/eslint/issues/461)  -  by
[@&#8203;antfu](https://togithub.com/antfu) in
[nuxt/eslint#461
[<samp>(533fa)</samp>](https://togithub.com/nuxt/eslint/commit/533fa40)
- Add `public` folder to default ignore, close
[#&#8203;453](https://togithub.com/nuxt/eslint/issues/453)  -  by
[@&#8203;antfu](https://togithub.com/antfu) in
[nuxt/eslint#453
[<samp>(b0e3e)</samp>](https://togithub.com/nuxt/eslint/commit/b0e3e72)
- Add server components to single root list, fix
[#&#8203;457](https://togithub.com/nuxt/eslint/issues/457)  -  by
[@&#8203;antfu](https://togithub.com/antfu) and **kingyue737** in
[nuxt/eslint#457
[<samp>(6e232)</samp>](https://togithub.com/nuxt/eslint/commit/6e232f0)

#####     [View changes on
GitHub](https://togithub.com/nuxt/eslint/compare/v0.3.13...v0.4.0)

</details>

<details>
<summary>nuxt/test-utils (@&#8203;nuxt/test-utils)</summary>

###
[`v3.14.0`](https://togithub.com/nuxt/test-utils/blob/HEAD/CHANGELOG.md#v3140)

[Compare
Source](https://togithub.com/nuxt/test-utils/compare/v3.13.1...v3.14.0)

[compare
changes](https://togithub.com/nuxt/test-utils/compare/v3.13.1...v3.14.0)

##### 🚀 Enhancements

- **runtime-utils:** Expose setup result from `renderSuspended`
([#&#8203;852](https://togithub.com/nuxt/test-utils/pull/852))
- **e2e:** Allow overwriting env variables in `setup`
([#&#8203;903](https://togithub.com/nuxt/test-utils/pull/903))
- **e2e:** Allow running e2e tests against existing server
([#&#8203;803](https://togithub.com/nuxt/test-utils/pull/803))
- **e2e:** Allow updating env in context before `setup` runs
([#&#8203;812](https://togithub.com/nuxt/test-utils/pull/812))

##### 🩹 Fixes

- **runtime-utils:** Ts-ignore `#build/` import until nuxt v3.12 release
([66b23ae6](https://togithub.com/nuxt/test-utils/commit/66b23ae6))
- **runtime-utils:** Allow `setProps` to replace an array
([#&#8203;877](https://togithub.com/nuxt/test-utils/pull/877))

##### 🏡 Chore

- Ignore ts-ignores for now
([ac2d9fbb](https://togithub.com/nuxt/test-utils/commit/ac2d9fbb))
- Add [@&#8203;danielroe](https://togithub.com/danielroe) to code owners
([76f65b3b](https://togithub.com/nuxt/test-utils/commit/76f65b3b))
- Remove ts-ignore now that we're upgraded
([16827f7f](https://togithub.com/nuxt/test-utils/commit/16827f7f))

##### ✅ Tests

- Bump timeout in windows browser spec
([73e2c716](https://togithub.com/nuxt/test-utils/commit/73e2c716))

##### ❤️ Contributors

-   Jessé Correia Lins ([@&#8203;linspw](http://github.com/linspw))
-   Tobias Diez <[email protected]>
- Mark Brockhoff
([@&#8203;markbrockhoff](http://github.com/markbrockhoff))
-   Daniel Roe ([@&#8203;danielroe](http://github.com/danielroe))
-   MaruyamaTomoki ([@&#8203;tomoki1207](http://github.com/tomoki1207))
-   Joao Vitor Alves <joaovitor_as08802@&#8203;hotmail.com>

</details>

<details>
<summary>vuejs/pinia (@&#8203;pinia/nuxt)</summary>

### [`v0.5.2`](https://togithub.com/vuejs/pinia/releases/tag/v0.5.2)

[Compare
Source](https://togithub.com/vuejs/pinia/compare/@pinia/[email protected]...@pinia/[email protected])

Please refer to
[CHANGELOG.md](https://togithub.com/posva/pinia/blob/v1/CHANGELOG.md)
for details.

</details>

<details>
<summary>vitejs/vite-plugin-vue (@&#8203;vitejs/plugin-vue)</summary>

###
[`v5.1.2`](https://togithub.com/vitejs/vite-plugin-vue/blob/HEAD/packages/plugin-vue/CHANGELOG.md#small512-2024-08-01-small)

- refactor(plugin-vue): add `type` field
([a6b7e3f](https://togithub.com/vitejs/vite-plugin-vue/commit/a6b7e3f))
- fix(plugin-vue): add deprecated `script.propsDestructure` option
([1e24322](https://togithub.com/vitejs/vite-plugin-vue/commit/1e24322)),
closes
[#&#8203;431](https://togithub.com/vitejs/vite-plugin-vue/issues/431)
- chore(deps): update upstream
([#&#8203;432](https://togithub.com/vitejs/vite-plugin-vue/issues/432))
([5d592cd](https://togithub.com/vitejs/vite-plugin-vue/commit/5d592cd)),
closes
[#&#8203;432](https://togithub.com/vitejs/vite-plugin-vue/issues/432)

###
[`v5.1.1`](https://togithub.com/vitejs/vite-plugin-vue/blob/HEAD/packages/plugin-vue/CHANGELOG.md#small511-2024-07-27-small)

- fix(plugin-vue): clear script cache if recall
([f5eb5ac](https://togithub.com/vitejs/vite-plugin-vue/commit/f5eb5ac)),
closes
[#&#8203;431](https://togithub.com/vitejs/vite-plugin-vue/issues/431)

</details>

<details>
<summary>vitest-dev/vitest (@&#8203;vitest/coverage-v8)</summary>

###
[`v2.0.5`](https://togithub.com/vitest-dev/vitest/releases/tag/v2.0.5)

[Compare
Source](https://togithub.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5)

#####    🚀 Features

- Introduce experimental reported tasks  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6149
[<samp>(13d85)</samp>](https://togithub.com/vitest-dev/vitest/commit/13d85bd1)
- This is part of the experimental API and doesn't follow semver. We are
hoping to stabilize it for 2.1. If you are working with custom
reporters, give this a go!

#####    🐞 Bug Fixes

- Show a difference between string characters if both values are strings
 -  by [@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6191
[<samp>(29176)</samp>](https://togithub.com/vitest-dev/vitest/commit/291766d7)
- `testNamePattern` adds leading space  -  by
[@&#8203;AriPerkkio](https://togithub.com/AriPerkkio) in
[vitest-dev/vitest#6186
[<samp>(073a5)</samp>](https://togithub.com/vitest-dev/vitest/commit/073a50c9)
-   **browser**:
- Don't bundle `afterEach` cleanup hooks in node entrypoint  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6192
[<samp>(e6fbc)</samp>](https://togithub.com/vitest-dev/vitest/commit/e6fbc620)
- UserEvent.setup initiates a separate state for userEvent instance  - 
by [@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6088
[<samp>(883f3)</samp>](https://togithub.com/vitest-dev/vitest/commit/883f3482)
- Correctly import optimized module in vi.importActual  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6219
[<samp>(804ff)</samp>](https://togithub.com/vitest-dev/vitest/commit/804ff2fd)
- Passing options to hover/unhover  -  by
[@&#8203;MNeverOff](https://togithub.com/MNeverOff) in
[vitest-dev/vitest#6175
[<samp>(d4c00)</samp>](https://togithub.com/vitest-dev/vitest/commit/d4c005bc)
- Improve unique CSS selector generation  -  by
[@&#8203;zacharyvoase](https://togithub.com/zacharyvoase) and **Zack
Voase** in
[vitest-dev/vitest#6243
[<samp>(e7acd)</samp>](https://togithub.com/vitest-dev/vitest/commit/e7acd0cf)
-   **vitest**:
- Remove nuxt from auto inline deps  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va)
[<samp>(93882)</samp>](https://togithub.com/vitest-dev/vitest/commit/93882f38)
- Improve `defineProject` and `defineWorkspace` types  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6198
[<samp>(8cd82)</samp>](https://togithub.com/vitest-dev/vitest/commit/8cd8272b)
- Correctly resolve mocked `node:*` imports in `__mocks__` folder  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6204
[<samp>(a48be)</samp>](https://togithub.com/vitest-dev/vitest/commit/a48be6ff)
-   **web-worker**:
- Expose globals on self  -  by
[@&#8203;sheremet-va](https://togithub.com/sheremet-va) in
[vitest-dev/vitest#6170
[<samp>(12bb5)</samp>](https://togithub.com/vitest-dev/vitest/commit/12bb567e)

#####     [View changes on
GitHub](https://togithub.com/vitest-dev/vitest/compare/v2.0.4...v2.0.5)

</details>

<details>
<summary>chromaui/chromatic-cli (chromatic)</summary>

###
[`v11.7.0`](https://togithub.com/chromaui/chromatic-cli/blob/HEAD/CHANGELOG.md#v1170-Wed-Jul-31-2024)

[Compare
Source](https://togithub.com/chromaui/chromatic-cli/compare/v11.6.0...v11.7.0)

##### 🚀 Enhancement

- test setting outOfSync to false
[#&#8203;1018](https://togithub.com/chromaui/chromatic-cli/pull/1018)
([@&#8203;ethriel3695](https://togithub.com/ethriel3695))

##### Authors: 1

- Reuben Ellis ([@&#8203;ethriel3695](https://togithub.com/ethriel3695))

***

###
[`v11.6.0`](https://togithub.com/chromaui/chromatic-cli/blob/HEAD/CHANGELOG.md#v1160-Wed-Jul-31-2024)

[Compare
Source](https://togithub.com/chromaui/chromatic-cli/compare/v11.5.6...v11.6.0)

##### 🚀 Enhancement

- Added logic to account for parentheses at the beginning
[#&#8203;1016](https://togithub.com/chromaui/chromatic-cli/pull/1016)
([@&#8203;ethriel3695](https://togithub.com/ethriel3695))

##### Authors: 1

- Reuben Ellis ([@&#8203;ethriel3695](https://togithub.com/ethriel3695))

***

</details>

<details>
<summary>eslint/eslint (eslint)</summary>

###
[`v9.8.0`](https://togithub.com/eslint/eslint/compare/v9.7.0...63881dc11299aba1d0960747c199a4cf48d6b9c8)

[Compare
Source](https://togithub.com/eslint/eslint/compare/v9.7.0...v9.8.0)

</details>

<details>
<summary>vitejs/vite (vite)</summary>

###
[`v5.3.5`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small535-2024-07-25-small)

[Compare
Source](https://togithub.com/vitejs/vite/compare/v5.3.4...v5.3.5)

- refactor(asset): remove rollup 3 public file watch workaround
([#&#8203;16331](https://togithub.com/vitejs/vite/issues/16331))
([66bdb1d](https://togithub.com/vitejs/vite/commit/66bdb1d7b41e46b5361606ff3811bdad6f625bcc)),
closes [#&#8203;16331](https://togithub.com/vitejs/vite/issues/16331)
- fix: make `server` type less restrictive (fix
[#&#8203;17627](https://togithub.com/vitejs/vite/issues/17627))
([#&#8203;17628](https://togithub.com/vitejs/vite/issues/17628))
([b55c32f](https://togithub.com/vitejs/vite/commit/b55c32f7e36ee7cc3754a5d667785d066dece10a)),
closes [#&#8203;17627](https://togithub.com/vitejs/vite/issues/17627)
[#&#8203;17628](https://togithub.com/vitejs/vite/issues/17628)
- fix: show error if vite client cannot be loaded
([#&#8203;17419](https://togithub.com/vitejs/vite/issues/17419))
([db5ab1d](https://togithub.com/vitejs/vite/commit/db5ab1dfc4fb55c6387136ee31fed35910a046b0)),
closes [#&#8203;17419](https://togithub.com/vitejs/vite/issues/17419)
- fix(build): env output is not stable
([#&#8203;17748](https://togithub.com/vitejs/vite/issues/17748))
([b240a83](https://togithub.com/vitejs/vite/commit/b240a8347e7b62bee9d2212625732bb0d8c78633)),
closes [#&#8203;17748](https://togithub.com/vitejs/vite/issues/17748)
- fix(client): fix vite error path
([#&#8203;17744](https://togithub.com/vitejs/vite/issues/17744))
([3c1bde3](https://togithub.com/vitejs/vite/commit/3c1bde340693e1de89ed2853225a5c1b6812accc)),
closes [#&#8203;17744](https://togithub.com/vitejs/vite/issues/17744)
- fix(css): resolve url aliases with fragments (fix:
[#&#8203;17690](https://togithub.com/vitejs/vite/issues/17690))
([#&#8203;17691](https://togithub.com/vitejs/vite/issues/17691))
([d906d3f](https://togithub.com/vitejs/vite/commit/d906d3f8e1199fb9fc09f4c3397a91b274bb65c8))
- fix(deps): update all non-major dependencies
([#&#8203;17629](https://togithub.com/vitejs/vite/issues/17629))
([93281b0](https://togithub.com/vitejs/vite/commit/93281b0e09ff8b00e21c24b80ed796db89cbc1ef)),
closes [#&#8203;17629](https://togithub.com/vitejs/vite/issues/17629)
- fix(importMetaGlob): handle alias that starts with hash
([#&#8203;17743](https://togithub.com/vitejs/vite/issues/17743))
([b58b423](https://togithub.com/vitejs/vite/commit/b58b423ba85a7cede97d00a0160a188770928ae4)),
closes [#&#8203;17743](https://togithub.com/vitejs/vite/issues/17743)
- fix(ssrTransform): sourcemaps with multiple sources
([#&#8203;17677](https://togithub.com/vitejs/vite/issues/17677))
([f321fa8](https://togithub.com/vitejs/vite/commit/f321fa8de2c8cf4f1758365abad4e7b352363a2f)),
closes [#&#8203;17677](https://togithub.com/vitejs/vite/issues/17677)
- chore: extend commit hash
([#&#8203;17709](https://togithub.com/vitejs/vite/issues/17709))
([4fc9b64](https://togithub.com/vitejs/vite/commit/4fc9b6424c27aca8004c368b69991a56264e4fdb)),
closes [#&#8203;17709](https://togithub.com/vitejs/vite/issues/17709)
- chore(deps): update all non-major dependencies
([#&#8203;17734](https://togithub.com/vitejs/vite/issues/17734))
([9983731](https://togithub.com/vitejs/vite/commit/998373120c8306326469d4f342690c17774acdf9)),
closes [#&#8203;17734](https://togithub.com/vitejs/vite/issues/17734)
- chore(deps): update typescript
([#&#8203;17699](https://togithub.com/vitejs/vite/issues/17699))
([df5ceb3](https://togithub.com/vitejs/vite/commit/df5ceb35b7f744cfcdfe3a28834f890f35f2b18f)),
closes [#&#8203;17699](https://togithub.com/vitejs/vite/issues/17699)
- revert: fix(logger): truncate log over 5000 characters long
([#&#8203;16581](https://togithub.com/vitejs/vite/issues/16581))
([#&#8203;17729](https://togithub.com/vitejs/vite/issues/17729))
([f4f488f](https://togithub.com/vitejs/vite/commit/f4f488fe83a0b710dd3de34a7075398cfce59605)),
closes [#&#8203;16581](https://togithub.com/vitejs/vite/issues/16581)
[#&#8203;17729](https://togithub.com/vitejs/vite/issues/17729)

</details>

<details>
<summary>vuejs/core (vue)</summary>

###
[`v3.4.35`](https://togithub.com/vuejs/core/blob/HEAD/CHANGELOG.md#3435-2024-07-31)

[Compare
Source](https://togithub.com/vuejs/core/compare/v3.4.34...v3.4.35)

##### Bug Fixes

- **teleport/ssr:** fix Teleport hydration regression due to targetStart
anchor addition
([7b18cdb](https://togithub.com/vuejs/core/commit/7b18cdb0b53a94007ca6a3675bf41b5d3153fec6))
- **teleport/ssr:** ensure targetAnchor and targetStart not null during
hydration
([#&#8203;11456](https://togithub.com/vuejs/core/issues/11456))
([12667da](https://togithub.com/vuejs/core/commit/12667da4879f980dcf2c50e36f3642d085a87d71)),
closes [#&#8203;11400](https://togithub.com/vuejs/core/issues/11400)
- **types/ref:** allow getter and setter types to be unrelated
([#&#8203;11442](https://togithub.com/vuejs/core/issues/11442))
([e0b2975](https://togithub.com/vuejs/core/commit/e0b2975ef65ae6a0be0aa0a0df43fb887c665251))

##### Performance Improvements

- **runtime-core:** improve efficiency of normalizePropsOptions
([#&#8203;11409](https://togithub.com/vuejs/core/issues/11409))
([5680142](https://togithub.com/vuejs/core/commit/5680142e68096c42e66da9f4c6220d040d7c56ba)),
closes [#&#8203;9739](https://togithub.com/vuejs/core/issues/9739)

###
[`v3.4.34`](https://togithub.com/vuejs/core/blob/HEAD/CHANGELOG.md#3434-2024-07-24)

[Compare
Source](https://togithub.com/vuejs/core/compare/v3.4.33...v3.4.34)

##### Bug Fixes

- **defineModel:** correct update with multiple changes in same tick
([#&#8203;11430](https://togithub.com/vuejs/core/issues/11430))
([a18f1ec](https://togithub.com/vuejs/core/commit/a18f1ecf05842337f1eb39a6871adb8cb4024093)),
closes [#&#8203;11429](https://togithub.com/vuejs/core/issues/11429)

</details>

<details>
<summary>vuejs/router (vue-router)</summary>

### [`v4.4.2`](https://togithub.com/vuejs/router/releases/tag/v4.4.2)

[Compare
Source](https://togithub.com/vuejs/router/compare/v4.4.1...v4.4.2)

Please refer to
[CHANGELOG.md](https://togithub.com/vuejs/router/blob/main/packages/router/CHANGELOG.md)
for details.

###
[`v4.4.1`](https://togithub.com/vuejs/router/compare/v4.4.0...v4.4.1)

[Compare
Source](https://togithub.com/vuejs/router/compare/v4.4.0...v4.4.1)

</details>

<details>
<summary>vuejs/language-tools (vue-tsc)</summary>

###
[`v2.0.29`](https://togithub.com/vuejs/language-tools/blob/HEAD/CHANGELOG.md#2028-supofficialsup-2029-supinsiderssup-2024-07-22)

[Compare
Source](https://togithub.com/vuejs/language-tools/compare/v2.0.28...49ad9563e6f2677595878a000179dfea83fb910c)

##### Features

- **vscode:** focus mode <sup>Insiders</sup>
([https://github.com/volarjs/insiders/pull/24](https://togithub.com/volarjs/insiders/pull/24))
-   **language-core:** Plugin API 2.1
    -   Added plugin hooks: `getLanguageId`, `isValidFile`, `parseSFC2`
- Improve backward compatibility
([#&#8203;4585](https://togithub.com/vuejs/language-tools/issues/4585))
- Thanks [@&#8203;zhiyuanzmj](https://togithub.com/zhiyuanzmj)
- **language-core:** support default prop when using \__typeProps
([#&#8203;4602](https://togithub.com/vuejs/language-tools/issues/4602))
- Thanks [@&#8203;zhiyuanzmj](https://togithub.com/zhiyuanzmj)
- **language-core:** improve nested plugins
([#&#8203;4581](https://togithub.com/vuejs/language-tools/issues/4581))
- Thanks [@&#8203;zhiyuanzmj](https://togithub.com/zhiyuanzmj)
- **language-service:** remove `v-bind` code action
([#&#8203;4601](https://togithub.com/vuejs/language-tools/issues/4601))
- **vscode:** add empty pattern to codeblock attributes scope
([#&#8203;4590](https://togithub.com/vuejs/language-tools/issues/4590))
- Thanks [@&#8203;KermanX](https://togithub.com/KermanX)

##### Fixes

- **tsc:** errors should be thrown instead of being console.log printed
- **language-server:** observe named pipes changes when server startup
([#&#8203;4292](https://togithub.com/vuejs/language-tools/issues/4292))
- **language-core:** infer define model type from options type
([#&#8203;4545](https://togithub.com/vuejs/language-tools/issues/4545))
- Thanks [@&#8203;davidmatter](https://togithub.com/davidmatter)
- **language-core:** type-checking not working with hyphen in slot name
with JS
([#&#8203;4478](https://togithub.com/vuejs/language-tools/issues/4478))
- Thanks [@&#8203;KermanX](https://togithub.com/KermanX)
- **language-core:** add type check for v-model without argument
([#&#8203;4598](https://togithub.com/vuejs/language-tools/issues/4598))
- Thanks [@&#8203;zhiyuanzmj](https://togithub.com/zhiyuanzmj)
- **language-service:** filter special tags
([#&#8203;4596](https://togithub.com/vuejs/language-tools/issues/4596))
- Thanks [@&#8203;so1ve](https://togithub.com/so1ve)
- **typescript-plugin:** improve named pipes reliability
([#&#8203;4603](https://togithub.com/vuejs/language-tools/issues/4603))
- **language-core:** property access is incorrectly identified as
compound expression
([#&#8203;4600](https://togithub.com/vuejs/language-tools/issues/4600))
- **language-core:** fix compatibility of generic component virtual code
with TS 5.5
([#&#8203;4577](https://togithub.com/vuejs/language-tools/issues/4577))
- **tsc:** TS4082 not reported for functional component
([#&#8203;4569](https://togithub.com/vuejs/language-tools/issues/4569))

##### Other Changes

-   Upgraded Volar from `v2.4.0-alpha.15` to `v2.4.0-alpha.18`:
- Fix VS Code IntelliSense will be lost in new created files
([#&#8203;4424](https://togithub.com/vuejs/language-tools/issues/4424))
- Add workspace symbols support in Hybrid Mode
([#&#8203;4595](https://togithub.com/vuejs/language-tools/issues/4595))
- Add workspace `addMissingImports` action support in Hybrid Mode
([#&#8203;4586](https://togithub.com/vuejs/language-tools/issues/4586))
- Fix yarn 4 compatibility
([#&#8203;4587](https://togithub.com/vuejs/language-tools/issues/4587))
- Add vue vine to hybrid mode compatible list
([#&#8203;4543](https://togithub.com/vuejs/language-tools/issues/4543))
- Thanks [@&#8203;so1ve](https://togithub.com/so1ve)
- Add global components prop validation test
([#&#8203;4542](https://togithub.com/vuejs/language-tools/issues/4542))
- Thanks [@&#8203;davidmatter](https://togithub.com/davidmatter)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/nuxt-modules/storybook).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@Revadike
Copy link

I'm still having this issue with v0.5.1. Even setting features.typescript explicitly to false does not fix it. The only way is to install typescript as dependency.

@antfu
Copy link
Member

antfu commented Aug 22, 2024

Set to false? Not true?

@Revadike
Copy link

Set to false? Not true?

We are not using typescript.

@Revadike
Copy link

@antfu
Here is the error:

[Error - 3:31:03 PM] Calculating config file for file:///home/myproject/eslint.config.js) failed.
Error: Cannot find module 'typescript'
Require stack:
- /home/myproject/node_modules/@typescript-eslint/typescript-estree/dist/convert.js
- /home/myproject/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js
- /home/myproject/node_modules/@typescript-eslint/typescript-estree/dist/parser.js
- /home/myproject/node_modules/@typescript-eslint/typescript-estree/dist/index.js
- /home/myproject/node_modules/@typescript-eslint/parser/dist/parser.js
- /home/myproject/node_modules/@typescript-eslint/parser/dist/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1152:15)
    at Module._load (node:internal/modules/cjs/loader:993:27)
    at c._load (node:electron/js2c/node_init:2:13801)
    at Module.require (node:internal/modules/cjs/loader:1240:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/home/myproject/node_modules/@typescript-eslint/typescript-estree/dist/convert.js:30:25)
    at Module._compile (node:internal/modules/cjs/loader:1373:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
    at Module.load (node:internal/modules/cjs/loader:1215:32)
    at Module._load (node:internal/modules/cjs/loader:1031:12)

Our dev dependencies:

  "devDependencies": {
    "@date-io/dayjs": "^3.0.0",
    "@nuxt/devtools": "^1.0.6",
    "@nuxt/eslint": "^0.5.1",
    "@nuxt/types": "^2.17.2",
    "@nuxtjs/google-fonts": "^3.2.0",
    "dotenv": "^16.3.1",
    "eslint": "^9.9.0",
    "eslint-config-vuetify": "^1.0.0",
    "eslint-plugin-vue": "^9.27.0",
    "firebase-tools": "^13.0.1",
    "html-to-vue": "^1.4.0",
    "nuxt": "^3.8.2",
    "sass": "^1.69.5",
    "vite-plugin-vuetify": "^2.0.1",
    "vue": "^3.3.10",
    "vue-eslint-parser": "^9.4.0",
    "vue-router": "^4.2.5",
    "vuetify": "^3.4.7"
  },

Our eslint config:

import js from '@eslint/js'
import vue from 'eslint-plugin-vue'
import vuetify from 'eslint-config-vuetify'
import vueEslintParser from 'vue-eslint-parser'
import withNuxt from './.nuxt/eslint.config.mjs'

export default withNuxt(
  js.configs.recommended,
  ...vue.configs['flat/recommended'],
  {
    files: ['**/*.js', '**/*.vue'],
    languageOptions: {
      parser: vueEslintParser
    },
    ignores: ['dist/*'],
    plugins: { vue },
    rules: {
...

@antfu
Copy link
Member

antfu commented Aug 22, 2024

Please create a new issue with proper minimal reproduction. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants