inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[REACT] Module not found:~~~Can't resolve '라이브러리' 오류 문의입니다.

1089

치현

작성한 질문수 3

0

react에서 새로운 라이브러릴 다운받고 사용할때 자주 일어나는 오류로 알고있습니다..

 

구글링의 결과 삭제후 재설치를 대부분 권장하시길래,

기본적으로 package-lock.json과 node_modules폴더를 삭제 진행후 npm install 이후 실행하는 것을 몇번을 반복해도 아래와 같이 같은 결과가 나오네요ㅠㅠ 해결책을 아시는 분이 있다면,, 알려주시면 감사드리겠습니다..

 

Compiled with problems:

ERROR in ./node_modules/fs.realpath/index.js 8:9-22

Module not found: Error: Can't resolve 'fs' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\fs.realpath'



ERROR in ./node_modules/fs.realpath/old.js 21:17-32

Module not found: Error: Can't resolve 'path' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\fs.realpath' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "path": false }



ERROR in ./node_modules/fs.realpath/old.js 25:9-22

Module not found: Error: Can't resolve 'fs' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\fs.realpath'



ERROR in ./node_modules/glob/common.js 13:9-22

Module not found: Error: Can't resolve 'fs' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob'



ERROR in ./node_modules/glob/common.js 15:11-26

Module not found: Error: Can't resolve 'path' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "path": false }



ERROR in ./node_modules/glob/glob.js 52:11-26

Module not found: Error: Can't resolve 'path' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "path": false }



ERROR in ./node_modules/glob/glob.js 54:13-30

Module not found: Error: Can't resolve 'assert' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }' - install 'assert' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "assert": false }



ERROR in ./node_modules/glob/glob.js 67:11-26

Module not found: Error: Can't resolve 'util' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }



ERROR in ./node_modules/glob/sync.js 12:11-26

Module not found: Error: Can't resolve 'util' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }



ERROR in ./node_modules/glob/sync.js 14:11-26

Module not found: Error: Can't resolve 'path' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "path": false }



ERROR in ./node_modules/glob/sync.js 16:13-30

Module not found: Error: Can't resolve 'assert' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\glob' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "assert": require.resolve("assert/") }' - install 'assert' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "assert": false }



ERROR in ./node_modules/node-sass/lib/extensions.js 4:10-27

Module not found: Error: Can't resolve 'os' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\node-sass\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "os": require.resolve("os-browserify/browser") }' - install 'os-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "os": false }



ERROR in ./node_modules/node-sass/lib/extensions.js 5:9-22

Module not found: Error: Can't resolve 'fs' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\node-sass\lib'



ERROR in ./node_modules/node-sass/lib/extensions.js 6:11-26

Module not found: Error: Can't resolve 'path' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\node-sass\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "path": false }



ERROR in ./node_modules/node-sass/lib/index.js 4:11-26

Module not found: Error: Can't resolve 'path' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\node-sass\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "path": false }



ERROR in ./node_modules/true-case-path/index.js 5:11-26

Module not found: Error: Can't resolve 'path' in 'C:\Users\A\Videos\React class\shop1\shop1\node_modules\true-case-path' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "path": false }

 

-

 

 

리액트 node_module

답변 0

해당 강의를 듣고 나면

0

398

1

렌더링 차이

0

479

1

counter 변수도 초기값이 없으면 널이 되더라구요.

1

427

1

버튼을 누를 때마다 매번 Form() 을 호출하는 걸까요?

2

353

2

쌤 리액트로 앱 만들수 있는건가요?

0

325

0

const title =<h1>제목</h1>; 에는 괄호가 없어도 되네요?

3

307

2

리액트 관련 서버 구축 중 server파일에서 발생한 오류

0

281

0

강의 7:41 삼항연산자 왜쓰는건가요?

0

674

1

img태그의 src=로컬호스트/이미지 이 부분 질문있습니다!

1

1533

1

state에서 count값 올릴때 +와 ++차이점이 궁금합니다

0

724

1

Create React App에서 node_modules파일 지워졌을 경우

0

1943

1

안녕하십니까 강의 정말 잘봤습니다

0

199

1

_app.js 특정페이지에 적용하고싶지 않을때

2

718

1

강의 목록 순서 관련 질문이 있습니다.

1

605

1

React 관련 궁금한게 있습니다.

0

199

1

작동은 잘되는데 콘솔창에 이런 오류가 뜨네요

0

535

1

성격급한사람이...

0

237

1

리액트 반복문

0

268

1

React.createRef()와는 무슨차이인가요?

0

319

1

안녕하세요 제로초님

0

315

1

질문있어요~ 꼭 봐주세요 퓨ㅠㅠ

0

263

1

리액트에서 img 태그 사용 시 src 속성에 대하여

1

740

2

"MyDocument.getInitialProps()" should resolve to an object. But found "undefined" instead.

0

709

1

안녕하세요 제로초님 리액트를 어느정도 다룰줄 알고 보는게 좋은지 여쭈어 보고 싶습니다.

0

284

1