Giter VIP home page Giter VIP logo

Comments (10)

hoshikitsunoda avatar hoshikitsunoda commented on June 18, 2024 2

I got the same error (TypeError: Error while loading rule 'perfectionist/sort-svelte-attributes': The "path" argument must be of type string. Received undefined), and the culprit was the ESlint version. Upgrading from 8.4.1 -> the latest fixed the issue.

from eslint-plugin-perfectionist.

azat-io avatar azat-io commented on June 18, 2024

Hi. Thank you for your issue. Do you have the ability to create a repository to reproduce the issue?

from eslint-plugin-perfectionist.

hckhanh avatar hckhanh commented on June 18, 2024

I figured out that everything is normal until I put the repo to a monorepo. I get this case too.

from eslint-plugin-perfectionist.

azat-io avatar azat-io commented on June 18, 2024

Can you show me your package.json?

Reproducing the problem would help speed up the resolution.

from eslint-plugin-perfectionist.

hckhanh avatar hckhanh commented on June 18, 2024

Hi @azat-io, here is the repo. You can add eslint-plugin-perfectionist

https://github.com/hckhanh/demo-sentry

from eslint-plugin-perfectionist.

azat-io avatar azat-io commented on June 18, 2024

@hckhanh Thank you! Could you please describe steps to reproduce the problem?

Because I don't see ESLint config in project root or scripts to call it.

from eslint-plugin-perfectionist.

hckhanh avatar hckhanh commented on June 18, 2024

Sorry about that, it seems there are some problems with my WebStorm. Everything is fine now.

from eslint-plugin-perfectionist.

azat-io avatar azat-io commented on June 18, 2024

No problem. Thank you for your issue!

from eslint-plugin-perfectionist.

Lighttree avatar Lighttree commented on June 18, 2024

I have the same issue after upgrading from 2.2.0 to 2.5.0. It seems that there were also some issues in 2.4.1:

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/viktorbusko/Development/html-promos/node_modules/eslint-plugin-perfectionist/dist/index.js from /Users/viktorbusko/Development/html-promos/node_modules/@eslint/eslintrc/lib/config-array-factory.js not supported.
index.js is treated as an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which declares all .js files in that package scope as ES modules.

And then this one Error while loading rule 'perfectionist/sort-svelte-attributes': The "path" argument must be of type string. In case of update to 2.5.0

Not sure about the reason trying to dig around. Maybe ESLint is outdated.

from eslint-plugin-perfectionist.

azat-io avatar azat-io commented on June 18, 2024

@Lighttree Can you reproduce the problem and provide a link to the repository? I'd be interested in looking at and researching this.

from eslint-plugin-perfectionist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.