iamport / iamport-react-example

리액트 환경에서 아임포트 결제 및 휴대폰 본인인증 연동을 위한 예제입니다.
MIT License
107 stars 32 forks source link

react-example file -> fsevents is not a constructor #30

Open yunyami0605 opened 3 years ago

yunyami0605 commented 3 years ago

안녕하세요. react example 파일을 local환경에서 돌리니 아래와 같은 에러가 발생하는데 해결할 방법이 있을까요?

/Users/###/Desktop/##/2_workspace/0_example/iamport-react-example/node_modules/chokidar/lib/fsevents-handler.js:29 return (new fsevents(path)).on('fsevent', callback).start(); ^

TypeError: fsevents is not a constructor at createFSEventsInstance (/Users/###/Desktop/##/2_workspace/0_example/iamport-react-example/node_modules/chokidar/lib/fsevents-handler.js:29:11) at setFSEventsListener (/Users/###/Desktop/##/2_workspace/0_example/iamport-react-example/node_modules/chokidar/lib/fsevents-handler.js:83:16) at FSWatcher.FsEventsHandler._watchWithFsEvents (/Users/###/Desktop/##/2_workspace/0_example/iamport-react-example/node_modules/chokidar/lib/fsevents-handler.js:253:16) at FSWatcher. (/Users/###/Desktop/##/2_workspace/0_example/iamport-react-example/node_modules/chokidar/lib/fsevents-handler.js:387:25) at LOOP (fs.js:1902:14) at processTicksAndRejections (internal/process/task_queues.js:77:11)

crowrish commented 2 years ago

npm package 재설치를 추천드립니다.

https://github.com/facebook/create-react-app/issues/6891

yarn: '1.22.15', node: '14.16.0' 이 환경에서 테스트 해봤는데 문제 없었습니다.

timo-kang commented 2 years ago

iamport를 웹에서 사용하려면 jquery도 필요하니 확인하시면 될 것 같습니다.