vue프로젝트를 만든뒤 빌드했습니다.(npm run build)
그후 index.html을 열거나 node.js에서
app.get('/', function(req, res){
//__dirname -> 위치 : /var/www/html/blog/server.js
res.sendFile(__dirname + "/dist/index.html")
}
);
로 index.html 를 불러오면
아래와 같은 오류가 뜨면서 하얀화면만 나옵니다.
원인이 무엇일까요?
GET http://localhost:8080/js/chunk-vendors.2d306906.js net::ERR_ABORTED 404 (Not Found)
localhost/:1 Refused to execute script from 'http://localhost:8080/js/chunk-vendors.2d306906.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
localhost/:1 GET http://localhost:8080/js/app.9c623ce7.js net::ERR_ABORTED 404 (Not Found)
localhost/:1 Refused to execute script from 'http://localhost:8080/js/app.9c623ce7.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
localhost/:1 Refused to apply style from 'http://localhost:8080/css/app.f248f1fe.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.