Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug: out of memory error while trying to lint nuxt #11249

Closed as not planned
Closed as not planned
@Tofandel

Description

@Tofandel

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue. (Well I did, but they are locked, which is counterproductive)
  • I have read the FAQ and my problem is not listed.

Issue Description

After getting out of memory errors on a CI env when linting, I decided to investigate

It turns out, that I did not artifact the .nuxt directory generated by the nuxt prepare command, and that means the .nuxt/tsconfig.json to extend from was missing

{
  "extends": "./.nuxt/tsconfig.json",
}

And this was causing eslint to infinite loop and go out of memory

I just wanted to share this for anyone with the same issue and maybe as a way to possibly reproduce the issue, but I cannot comment on #1879 and I will not look into this further because I found the direct cause

Reproduction Repository Link

#1879

Repro Steps

Versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfix: user errorissue was fixed by correcting the configuration / correcting the codelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions