[Hotfix/v1.0.2] mdxOptions > development : 환경에 따라 가변 설정 시도 #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trouble Shooting
mdx.lib.ts
의 serialize 함수의mdxOptions
에서 development를 설정해주는데,이를
true
로 설정하면 개발 환경(development)에서는 문제가 발생하지 않고 serialize가 정상 동작하지만,production에 배포했을 때, development가 아니므로
TypeError: _jsxDEV is not a function
에러 발생하지만 development를
false
로 설정하면, 개발환경에서 serialize가 정상동작하지 않고TypeError: _jsx is not a function
에러 발생-> 환경을 확인해 development를 가변적으로 설정하여 각 환경에서 모두 만족하도록 설정 시도
references