Skip to content

[버그] svelte.js 파일에서 state 에러 발생 #2

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

Closed
2 tasks done
gomdoreelab opened this issue Feb 1, 2025 · 1 comment
Closed
2 tasks done

[버그] svelte.js 파일에서 state 에러 발생 #2

gomdoreelab opened this issue Feb 1, 2025 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@gomdoreelab
Copy link
Owner

버그 설명

ESlint에서 state가 정의되지 않은 것으로 나옴 (un-def)

** 참고 링크

재현 방법

.svelte.js 파일에서 state를 사용해본당

로그

시스템 정보

.

심각도

사용 완전 불가

확인 사항

  • 이 버그가 이미 보고되지 않았는지 확인했습니다.
  • 제공한 정보가 정확하고 최신임을 확인했습니다.
@gomdoreelab gomdoreelab added the bug Something isn't working label Feb 1, 2025
@gomdoreelab gomdoreelab added this to the v0.1.x milestone Feb 1, 2025
@gomdoreelab gomdoreelab self-assigned this Feb 1, 2025
@gomdoreelab
Copy link
Owner Author

해결방법

  • eslint.config.js 파일에 설정을 추가함
import svelteConfig from "./svelte.config.js";
export default [
  ... 기본설정,
  {
    files: ["**/*.svelte.js", "*.svelte.js"],
    languageOptions: {
      parser: svelteParser,
      parserOptions: {
        svelteConfig,
        /* ... */
      },
    },
  },
];

** 참고링크

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant