question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ESLINT] can't resolve reference #/definitions/directiveConfigSchema from id #

See original GitHub issue

Describe the bug

Hello Eslint don’t work on demo app

A few weeks ago it’s works fine

Reproduction

I create demo app like shown below

npm create svelte test

create-svelte version 2.0.0-next.159

Welcome to SvelteKit!

This is beta software; expect bugs and missing features.

Problems? Open an issue on https://github.com/sveltejs/kit/issues if none exists already.

✔ Which Svelte app template? › SvelteKit demo app
✔ Add type checking with TypeScript? › Yes, using TypeScript syntax
✔ Add ESLint for code linting? … No / Yes
✔ Add Prettier for code formatting? … No / Yes
✔ Add Playwright for browser testing? … No / Yes

Your project is ready!
✔ Typescript
  Inside Svelte components, use <script lang="ts">
✔ ESLint
  https://github.com/sveltejs/eslint-plugin-svelte3
✔ Prettier
  https://prettier.io/docs/en/options.html
  https://github.com/sveltejs/prettier-plugin-svelte#options
✔ Playwright
  https://playwright.dev

Install community-maintained integrations:
  https://github.com/svelte-add/svelte-adders

Next steps:
  1: cd test
  2: npm install (or pnpm install, etc)
  3: git init && git add -A && git commit -m "Initial commit" (optional)
  4: npm run dev -- --open

To close the dev server, hit Ctrl-C

Stuck? Visit us at https://svelte.dev/chat

install all dependencies and run eslint yarn install && yarn lint

after that i see

yarn install && yarn lint
yarn install v1.22.19
warning package.json: "test" is also the name of a node core module
warning package.json: No license field
info No lockfile found.
warning test@0.0.1: "test" is also the name of a node core module
warning test@0.0.1: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 13.73s.
yarn run v1.22.19
warning package.json: "test" is also the name of a node core module
warning package.json: No license field
$ prettier --check . && eslint .
Checking formatting...
All matched files use Prettier code style!
can't resolve reference #/definitions/directiveConfigSchema from id #
can't resolve reference #/definitions/directiveConfigSchema from id #
can't resolve reference #/definitions/directiveConfigSchema from id #
can't resolve reference #/definitions/directiveConfigSchema from id #
Done in 8.21s.

A few weeks ago it’s works fine

Logs

No response

System Info

System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
    Memory: 23.88 GB / 24.98 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 18.0.0 - ~/.nvm/versions/node/v18.0.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.0.0/bin/yarn
    npm: 8.6.0 - ~/.nvm/versions/node/v18.0.0/bin/npm
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.65
    @sveltejs/kit: next => 1.0.0-next.428
    svelte: ^3.46.0 => 3.49.0
    vite: ^3.0.8 => 3.0.9

Severity

annoyance

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
dhartotocommented, Aug 23, 2022

Hi all, not sure if this is helpful for you but I got this page by searching for resolution for the same error when bumping @typescript-eslint/eslint-plugin@5.33.0 to @typescript-eslint/eslint-plugin@5.34.0.

Good luck!

1reaction
dummdidummcommented, Aug 23, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

`can't resolve reference` eslint warning with react preset
This error was caused by eslint-plugin-react package (which I found out following this airbnb config issue).
Read more >
eslint/eslint - Gitter
Tried setting it in my local config, and on the online parser at eslint.org. Streissi ... can't resolve reference #/definitions/basicConfig from id #...
Read more >
eslint-import-resolver-typescript - npm
This plugin adds `TypeScript` support to `eslint-plugin-import`. Latest version: 3.5.2, last published: 2 months ago.
Read more >
Swagger $ref gives "Could not resolve reference: u...
so I'm trying to separate the objects that we give in the responses body into separate yaml, or json, files and it gives...
Read more >
Rules - ESLint - Pluggable JavaScript Linter
Some problems reported by this rule are automatically fixable by the --fix command line option. hasSuggestions. Some problems reported by this rule are ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found