TODOLIST
- 각종 페이지 수정
- 애니매이션을 이용한 로딩페이지 구현
- 네브 바 생성
Module not found: Error: Can't resolve 'fs' in '/Users/parksoyoung/Desktop/PICKSHARE/client/node_modules/dotenv/lib'
ERROR in ./node_modules/dotenv/lib/main.js 1:11-24
Module not found: Error: Can't resolve 'fs' in '/Users/parksoyoung/Desktop/PICKSHARE/client/node_modules/dotenv/lib'
ERROR in ./node_modules/dotenv/lib/main.js 3:13-28
Module not found: Error: Can't resolve 'path' in '/Users/parksoyoung/Desktop/PICKSHARE/client/node_modules/dotenv/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/dotenv/lib/main.js 5:11-24
Module not found: Error: Can't resolve 'os' in '/Users/parksoyoung/Desktop/PICKSHARE/client/node_modules/dotenv/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 }
webpack compiled with 3 errors and 1 warning
No issues found.
이런 에러를 만났는데.. create-react-app으로 만든 리액트 앱일경우 dotenv가 기본으로 내장되어있다고 한다.
코드 최상단에
import dotenv from 'dotenv'
dotenv.config()
와 같은것을 지워주면 에러는 해결된다.
animation: boxFade 2s 1s infinite linear alternate;
@keyframes boxFade {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}