해결)Could not find package "build_runner". Did you forget to add a dependency?

작성자: [관리자] 하얀설표

2023.12.09 17:38 (KST) 작성됨

2023.12.09 17:39 (KST) 수정됨






(2023.12.09) 수정됨.

에러

$ flutter pub run build_runner build
Deprecated. Use `dart run` instead.
Could not find package "build_runner". Did you forget to add a dependency?

 

해결 방법

dev_dependencies에 build_runner가 없을 때 나타나는 메세지다.

 

설명

pubspec.yaml의 dev_dependencies에 build runner가 없기 때문에 build 작업을 수행하지 못하는 것이다.
다음과 같이 build_runner를 추가한 다음, 다시 build하면 정상적으로 작동하는 것을 확인할 수 있다.

# pubspec.yaml
dev_dependencies:
  build_runner: ^2.4.7

 

build runner dev: https://pub.dev/packages/build_runner/install

 






추천 (0)


글 목록

댓글을 달 수 없는 게시물입니다.


"분류없음" 카테고리의 #에러해결, #flutter, #dart 관련 게시물

분류없음
해결) django.db.utils.OperationalError: database is locked
수정 06.18 | [관리자] 하얀설표
👍 0
#Python, #에러해결, #Django
🗨️ 0
분류없음
해결) An invalid form control with name='content' is not focusable.
작성 02.04 | [관리자] 하얀설표
👍 0
#에러해결
🗨️ 0
썸네일
분류없음
해결) mplfinance 한글 깨짐 문제(폰트 미지원 문제)
수정 2024.11.24 | [관리자] 하얀설표
👍 0
#Python, #에러해결
🗨️ 0
분류없음
해결)ImportError: attempted relative import with no known parent package
수정 2024.11.17 | [관리자] 하얀설표
👍 0
#Python, #에러해결
🗨️ 0
분류없음
해결)OSError: Chromium downloadable not found at {url} No such object
수정 2024.05.15 | [관리자] 하얀설표
👍 0
#Python, #에러해결
🗨️ 0
분류없음
해결)ModuleNotFoundError: No module named '_sqlite3'
작성 2024.04.23 | [관리자] 하얀설표
👍 0
#Python, #에러해결
🗨️ 0
분류없음
해결)json.decoder.JSONDecodeError: Invalid \escape: line * column * (char *)
수정 2024.04.22 | [관리자] 하얀설표
👍 0
#Python, #에러해결
🗨️ 0
썸네일
분류없음
해결)네이버 공유하기 알 수 없는 오류가 발생하여 공유하기가 진행되지 못했습니다
수정 2024.04.19 | [관리자] 하얀설표
👍 0
#에러해결
🗨️ 0
분류없음
해결)WARNING: Requirement 'JPype1‑1.4.0‑cp310‑cp310‑win_amd64.whl' looks like a filename, but the file does not exist
작성 2023.12.13 | [관리자] 하얀설표
👍 0
#Python, #에러해결
🗨️ 0
분류없음
해결)jpype._jvmfinder.JVMNotFoundException: No JVM shared library file (jvm.dll) found.
작성 2023.12.13 | [관리자] 하얀설표
👍 0
#Python, #에러해결
🗨️ 0