inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

deok0119님의 게시글

deok0119 deok0119

@deok01199088

수강평 작성수
-
평균평점
-

게시글 1

질문&답변

npm run start시 new TextEncoder(); 에러 납니다.ㅠㅠ

"node_modules/whatwg-url/lib/encoding.js" 파일 열고 아래와 같이 수정해보세요! "use strict"; const {TextDecoder, TextEncoder} = require("util") //이 부분 추가 const utf8Encoder = new TextEncoder(); const utf8Decoder = new TextDecoder("utf-8", { ignoreBOM: true }); function utf8Encode(string) { return utf8Encoder.encode(string); } function utf8DecodeWithoutBOM(bytes) { return utf8Decoder.decode(bytes); } module.exports = { utf8Encode, utf8DecodeWithoutBOM };

좋아요수
0
댓글수
1
조회수
456