Skip to content
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

Next > ESM not fully support yet #1

Closed
Dann1y opened this issue Nov 22, 2023 · 0 comments
Closed

Next > ESM not fully support yet #1

Dann1y opened this issue Nov 22, 2023 · 0 comments
Assignees

Comments

@Dann1y
Copy link
Owner

Dann1y commented Nov 22, 2023

관련 이슈

문제

  • 프로젝트를 ESM으로 선언했을 때 CommonJS 방식처럼 require문을 사용할 수 없는데
  • find-config.js 라는 next 내부 의존성 파일에서 require문을 사용하고 있었고 config파일을 찾는 과정에서 postcss.config.js 가 걸려 에러가 발생한다.

해결 방법

  • 가장 본질적인 해결방법은 find-config를 수정하는 것이겠지만 다른 유저가 cjs로 불러오도록 수정하는 PR을 올렸다.
  • 일단 관련 이슈의 코멘트와 같이 postcss.config.js를 삭제하고 package.json에 postcss key를 생성함으로써 해결한다.
@Dann1y Dann1y self-assigned this Nov 22, 2023
@Dann1y Dann1y closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant