Browserslist에러 질문
1921
작성한 질문수 23
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
ready - started server on http://localhost:3000
info - automatically enabled Fast Refresh for 1 custom loader
C:\Users\내컴\Desktop\fashionary\front\node_modules\next\dist\build\webpack-config.js:38
const isLocal=request.startsWith('.')||// Always check for unix-style path, as webpack sometimes
안녕하세요 선생님. 프론트단을 실행하려고 보니까 위와 같은 메시지가 떠서
에러메시지에 나온대로 터미널에 npx browserslist@latest --update-db를 입력했는데도 같은 에러가 뜨는건 어디를 봐야 하는 건가요?
답변 1
0
음.. 일단 저 부분이 에러가 아닌 것 같습니다. 전체 메시지를 올려주세요.
0
선생님 지금 보니까 제가 다른 라이브러리를 설치해서 써야 하는데 프론트에서 next.config.js 설정을
const withTM = require("next-transpile-modules")([
"@fullcalendar/common",
"@babel/preset-react",
"@fullcalendar/common",
"@fullcalendar/daygrid",
"@fullcalendar/interaction",
"@fullcalendar/react",
"@fullcalendar/timegrid",
]);
module.exports = withTM({
});이렇게 하라고 해서 프론트 폴더에 next.config.js을 만들고 위의 내용을 쓰니까
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
ready - started server on http://localhost:3000
info - automatically enabled Fast Refresh for 1 custom loader
C:\Users\내컴\Desktop\fashionary\front\node_modules\next\dist\build\webpack-config.js:38
const isLocal=request.startsWith('.')||// Always check for unix-style path, as webpack sometimes
^
TypeError: Cannot read properties of undefined (reading 'startsWith')
at handleExternals (C:\Users\내컴\Desktop\fashionary\front\node_modules\next\dist\build\webpack-config.js:38:23)
at webpackConfig.externals (C:\Users\내컴\Desktop\fashionary\front\node_modules\next\dist\build\webpack-config.js:79:136)
at C:\Users\내컴\Desktop\fashionary\front\node_modules\next-transpile-modules\src\next-transpile-modules.js:167:44
at handleExternals (C:\Users\내컴\Desktop\fashionary\front\node_modules\webpack\lib\ExternalModuleFactoryPlugin.js:78:17)
at next (C:\Users\내컴\Desktop\fashionary\front\node_modules\webpack\lib\ExternalModuleFactoryPlugin.js:66:9)
at handleExternals (C:\Users\내컴\Desktop\fashionary\front\node_modules\webpack\lib\ExternalModuleFactoryPlugin.js:71:7)
at C:\Users\내컴\Desktop\fashionary\front\node_modules\webpack\lib\ExternalModuleFactoryPlugin.js:101:5
at C:\Users\내컴\Desktop\fashionary\front\node_modules\webpack\lib\NormalModuleFactory.js:400:5
at AsyncSeriesWaterfallHook.eval [as callAsync] (eval at create (C:\Users\내컴\Desktop\fashionary\front\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesWaterfallHook.lazyCompileHook (C:\Users\내컴\Desktop\fashionary\front\node_modules\tapable\lib\Hook.js:154:20)
이런 메시지가 뜨더라구요..next.config.js 파일이 package.json과 같은 위치에 있으면 된다고 해서 그렇게 했는데 제가 어디서 틀렸는지 알 수 있을까요?ㅠㅠㅠ
넥스트 버젼 질문
0
79
2
로그인시 401 Unauthorized 오류가 뜹니다
0
91
1
무한 스크롤 중 스크롤 튐 현상
0
178
1
특정 페이지 접근을 막고 싶을 때
0
105
2
createGlobalStyle의 위치와 영향범위
0
97
2
인라인 스타일 리렌더링 관련
0
93
2
vsc 에서 npm init 설치시 오류
0
150
2
nextjs 15버전 사용 가능할까요?
0
160
1
화면 새로고침 문의
0
124
1
RTK에서 draft, state 차이가 있나요?
0
156
2
Next 14 사용해도 될까요?
0
454
1
next, node 버전 / 폴더 구조 질문 드립니다.
0
350
1
url 오류 질문있습니다
0
212
1
ssh xxxxx로 우분투에 들어가려니까 port 22: Connection timed out
0
381
1
sudo certbot --nginx 에러
0
1282
2
Minified React error 콘솔에러 (hydrate)
0
472
1
카카오 공유했을 때 이전에 작성했던 글이 나오는 버그
0
249
1
프론트서버 배포 후 EADDRINUSE에러 발생
0
330
1
npm run build 에러
0
519
1
front 서버 npm run build 중에 발생한 에러들
0
384
1
서버 실행하고 브라우저로 들어갔을때 404에러
0
339
2
css 서버사이드 랜더링이 적용되지 않아서 문의 드립니다.
0
289
1
팔로워 3명씩 불러오고 데이터 합쳐주는걸로 바꾸고 서버요청을 무한으로하고있습니다.
0
243
2
해시태그 검색에서 throttle에 관해 질문있습니다.
0
203
1





