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

React에서 yarn install, import 시 fs를 찾지 못하는 문제 #84

Open
sehoonCho opened this issue Apr 12, 2023 · 1 comment
Open

Comments

@sehoonCho
Copy link

sehoonCho commented Apr 12, 2023

React 개발환경에서 yarn install (npm install) 후에 hwp.js 임포트 시에, fs모듈을 찾지 못한다는 에러문구가 발생합니다.

webpack이 v5로 넘어가면서 생긴 오류인 것 같습니다.

ERROR in ./node_modules/hwp.js/build/esm.js 1:0-28
Module not found: Error: Can't resolve 'fs' in '~~~'

라이브러리 버전정보
"react-scripts": "^5.0.1",
"hwp.js": "^0.0.3",

@sehoonCho sehoonCho changed the title React에서 yarn install, import 시 fs를 찾지 못하는 문제. React에서 yarn install, import 시 fs를 찾지 못하는 문제 Apr 12, 2023
@Jeyoung-Park
Copy link

nextjs에서는 이거 참고하시면 해결됩니다!
https://stackoverflow.com/questions/64926174/module-not-found-cant-resolve-fs-in-next-js-application

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

2 participants