inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[React 1부] 만들고 비교하며 학습하는 React

[순수JS 1] 폴더 구조

http://localhost:3000/ 하면 404에러가 납니다.

692

zohee23

작성한 질문수 1

0

npx lite0server --baseDir 1-vanilla

터미널에서 실행 후, localhost:3000접속하면

Cannot GET / 이라고 뜨고 개발자도구에는 404에러라고 뜹니다.

 

터미널에도 404 에러구요.. 어떻게 하면 화면 띄울수있을까요?

Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
** browser-sync config **
{
  injectChanges: false,
  files: [ './**/*.{html,htm,css,js}' ],
  watchOptions: { ignored: 'node_modules' },
  server: {
    baseDir: './',
    middleware: [ [Function (anonymous)], [Function (anonymous)] ]
  }
}
[Browsersync] Access URLs:
 --------------------------------------
       Local: http://localhost:3000
    External: http://192.168.0.102:3000
 --------------------------------------
          UI: http://localhost:3001
 UI External: http://localhost:3001
 --------------------------------------
[Browsersync] Serving files from: ./
[Browsersync] Watching files...
23.09.07 15:29:32 404 GET /index.html
23.09.07 15:29:35 404 GET /index.html
23.09.07 15:33:58 404 GET /index.html

react mvc

답변 1

0

zohee23

npx lite0server --baseDir 1-vanilla 실행을 cd 1-vanilla 후에 하니까 화면이 뜨네요. 문제해결했습니다.

0

김정환

캡쳐해주신것 보면 기본 폴더가 1-vanilla로 지정되지 않은것 같아보여요.

말씀하신대로 해당 폴더로 이동하신뒤에 명령어 실행하시면 될것 같네요. 폴더에서 명령어 실행하실때는 npx lite-server만 실행해도 될거게요.

 

 

리액트 1,2부 이후 후속 강의나 준비 중인 다른 강의가 있으신가요?

1

91

2

super.show() 호출하는 이유가 궁금합니다.

1

83

2

class와 constructor를 이용한 객체 지향 프로그래밍

0

225

2

mvc 패턴 질문

0

197

2

Cannot read properties of undefined (reading 'props')

0

271

2

delegate, emit 필요한 이유

0

197

2

어떤거를 먼저 들어야 하는지 도와주세요

1

265

1

localhost:8080 접속 불가

1

283

1

최근검색어 3 풀이에서

1

188

1

import 문제

1

233

1

자동변환 관련

1

204

1

sort() 질문 드립니다.

1

304

2

reset 시점에 searchResult 빈 배열로 update

2

312

2

Button에 Onclick사용

1

248

1

npx lite-server error 확인 요청드립니다.

1

470

2

node 20이상 쓸때 꿀팁

4

760

3

디버깅 관련질문이 있습니다.

1

295

1

[순수JS2]탭 3(풀이) 질문있습니다.

1

229

1

추상화를 어떻게 받아들이면 될까요??

1

436

1

[검색폼 1] View.js 파일 질문과 학습 질문

1

330

1

on 메서드 eventName 문의

1

268

1

import에 관해서 질문드립니다

1

257

1

view.js의 on 메소드에 대해 질문드립니다

1

260

1

componentDidMount에서 getKeywordList()를 하는 이유

1

243

1