Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse source map #63

Open
1 task
baaaam771 opened this issue Jun 28, 2022 · 6 comments
Open
1 task

Failed to parse source map #63

baaaam771 opened this issue Jun 28, 2022 · 6 comments

Comments

@baaaam771
Copy link
Contributor

baaaam771 commented Jun 28, 2022

image

확인해본 결과 이러한 에러 코드가 나오긴하는데 toast ui 적용할 때부터 저한테는 나왔던 에러 코드입니다

해결방법은 미리 찾아놨는데요
다른분들은 이 에러코드가 나오는지 안나오는지 아직 확인을 못해봐서
develope 브랜치로 병합된 이후에 에러 수정하려했습니다

참고로 해당 에러는 toast ui 공식 깃허브에도 이슈로 등록이 되어 있습니다
nhn/tui.editor#2137
라이브러리 내부적인 문제라 자세한 상황파악은 어렵지만
에러코드에서 말해주는 것처럼 소스맵(Source Map)과 관련된 이슈로 보입니다.
그렇기 때문에 단순하게 소스맵 사용을 중단시켜주면 해결이 됩니다.

// package.json 파일

"scripts": {
    "start": "GENERATE_SOURCEMAP=false react-scripts start",
    ...
}, ...

Originally posted by @baaaam771 in #52 (comment)

📒 이슈 내용

"source map 파싱 에러"

📑 상세 내용

  1. "소스맵(Source Map) 내부 문제"

✔️ 체크리스트

  • package.json에서 SOURCEMAP 제거
@euny0ung
Copy link
Contributor

PR에도 썼지만 윈도우에서는 저 코드가 안먹혀서

"winBuild": "set \"GENERATE_SOURCEMAP=false\" && react-scripts build",

이것도 추가 부탁드려요!

@LimEunSang
Copy link
Contributor

PR에도 썼지만 윈도우에서는 저 코드가 안먹혀서

"winBuild": "set \"GENERATE_SOURCEMAP=false\" && react-scripts build",

이것도 추가 부탁드려요!

GENERATE_SOURCEMAP=false <-- 이 코드 때문에 제 컴퓨터(window)에서 다음과 같은 오류가 납니다 ㅠㅠ
image

@euny0ung
Copy link
Contributor

euny0ung commented Jul 4, 2022

"scripts": {
"start": "GENERATE_SOURCEMAP=false react-scripts start",
...
}, ...

혹시 은상님 컴퓨터에서
"scripts": {
"start": "GENERATE_SOURCEMAP=false react-scripts start",
...
}, ...

이것만 추가해줘도 오류 안뜨나요?? 저는 이 코드 때문에
'GENERATE_SOURCEMAP'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다. 라고 뜨네요ㅠㅠ

@LimEunSang
Copy link
Contributor

"scripts": {
"start": "GENERATE_SOURCEMAP=false react-scripts start",
...
}, ...

혹시 은상님 컴퓨터에서 "scripts": { "start": "GENERATE_SOURCEMAP=false react-scripts start", ... }, ...

이것만 추가해줘도 오류 안뜨나요?? 저는 이 코드 때문에 'GENERATE_SOURCEMAP'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 라고 뜨네요ㅠㅠ

저렇게 추가하면 제 컴퓨터에서도 오류 나요.. 범기님 컴은 mac이고 저희는 window라 안되는건가... 이따 집에가서 제 mac으로 확인해볼게요

@LimEunSang
Copy link
Contributor

일단 mac은 되고 window는 안되네요.

@baaaam771
Copy link
Contributor Author

빌드에 추가해서 올려보기

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants