# ReferenceError: Can't find variable: TextDecoder

**URL:** https://devforum.kaia.io/t/referenceerror-cant-find-variable-textdecoder/5814
**Category:** Caver
**Created:** [8월 8, 2022, 4:47오전 UTC](https://devforum.kaia.io/t/referenceerror-cant-find-variable-textdecoder/5814 "2022-08-08T04:47:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cczt](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@cczt](https://devforum.kaia.io/u/cczt)
#### Post date: [8월 8, 2022, 4:47오전 UTC](https://devforum.kaia.io/t/referenceerror-cant-find-variable-textdecoder/5814/1 "2022-08-08T04:47:31Z")

</div>

react-native 프로젝트에 caver-js import 하면 아래와 같은 메세지가 발생하네요.  
동일한 현상 나오신 분들 계실까요?

react-native 0.63.4  
node 14.19.3  
caver-js 1.9.0

**ERROR** ReferenceError: Can’t find variable: TextDecoder

**LOG** Running “test84” with {“rootTag”:1}  
**ERROR** Invariant Violation: “test84” has not been registered. This can happen if:

- Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
- A module failed to load due to an error and `AppRegistry.registerComponent` wasn’t called.
