인프런 커뮤니티 질문&답변
프리티어와 린트가 먹히질 않습니다. 그리고 웹팩 돌린후 dist 폴더가 생성되지 않습니다.(깃 주소첨부)
작성
·
353
0
1. 이상하게 프리티어랑 린트가 먹히질 않는 것 같습니다..
vscode쓰는데 설정파일 같이 첨부드립니다.. (setting.json)
2. 그리고 웹팩 번들링 작업후 /dist 폴더가 생성이 안되는데 에러는 딱히 안나는것 같은데 이유를 잘 모르겠습니다.
https://github.com/SeokSuMin/slaectSumin/tree/master
답변 1
0
1. vs code는 제가 안 써서 잘 모르겠습니다. node_modules 안에 설치된 것은 맞죠?
2. dist 폴더는 개발시에는 안 생깁니다. 배포 시에만 생깁니다.
혹시 이 경고가 화면에 아무런 컴포넌트가 안나오는 원인일까요?
http://localhost:3090/(여기에 아무url을쳐도 반응이 같음)
웹웹팩결과
````
$ npm run dev
> sleact-front@1.0.0 dev C:\Users\user\Desktop\sumin\sleact-front
> cross-env TS_NODE_PROJECT="tsconfig-for-webpack-config.json" webpack serve --env devalopment
i 「wds」: Project is running at http://localhost:3090/
i 「wds」: webpack output is served from /dist/
i 「wds」: Content not from webpack is served from C:\Users\user\Desktop\sumin\sleact-front
i 「wds」: 404s will fallback to /index.html
@babel/preset-env: `DEBUG` option
Using targets:
{
"chrome": "89"
}
Using modules transform: auto
Using plugins:
syntax-class-properties
syntax-numeric-separator
syntax-nullish-coalescing-operator
proposal-optional-chaining { chrome }
syntax-json-strings
syntax-optional-catch-binding
syntax-async-generators
syntax-object-rest-spread
syntax-dynamic-import
proposal-export-namespace-from { }
syntax-top-level-await
Using polyfills: No polyfills were added, since the `useBuiltIns` option was not set.
i 「wdm」: asset app.js 1.66 MiB [emitted] (name: app)
asset vendors-node_modules_emotion_styled_base_dist_emotion-styled-base_browser_esm_js.js 104 KiB [emitted] (id hint: vendors)
asset pages_SignUp_index_tsx.js 48.8 KiB [emitted]
asset pages_Login_index_tsx.js 4.74 KiB [emitted]
runtime modules 30.4 KiB 16 modules
orphan modules 10.1 KiB [orphan] 2 modules
modules by path ./node_modules/ 1.56 MiB 82 modules
modules by path ./pages/ 48.3 KiB
./pages/Login/index.tsx 2.74 KiB [built] [code generated]
./pages/SignUp/index.tsx 5.19 KiB [built] [code generated]
./pages/SignUp/styles.tsx 40.4 KiB [built] [code generated]
./client.tsx 2.82 KiB [built] [code generated]
./layout/App.tsx 3.38 KiB [built] [code generated]
sleact (webpack 5.37.0) compiled successfully in 3467 ms
i 「wdm」: Compiled successfully.
````





1. 네, node_modules에 설치했는데, 좀더 알아봐야겠네요
2. 아 dev서버를 쓰면 dist폴더가 생성이 안되는건가요? 근데, npm run dev하고 브라우저 실행하면 아무런 화면이 안나오는 현상은 왜 그런걸까요? 현재 올린 url의 깃 프로젝트가 지금 그렇거든요...
답변감사합니다.