transform[stderr]: The exported identifier "AudioConfiguration" is not declared in Babel's scope tracker
transform[stderr]: as a JavaScript value binding, and "@babel/plugin-transform-typescript"
transform[stderr]: never encountered it as a TypeScript type declaration.
transform[stderr]: It will be treated as a JavaScript value.
transform[stderr]:
transform[stderr]: This problem is likely caused by another plugin injecting
transform[stderr]: "AudioConfiguration" without registering it in the scope tracker. If you are the author
transform[stderr]: of that plugin, please use "scope.registerDeclaration(declarationPath)".
BUNDLE ./index.js
error: node_modules/@livekit/react-native/src/index.tsx: /Users/osx/Documents/Projects/unic.chat.mobile/node_modules/@livekit/react-native/src/index.tsx: Exporting local "AudioConfiguration", which is not declared.
74 | export {
75 | AudioSession,
then i add registerGlobals() in index.js file
transform[stderr]: The exported identifier "AudioConfiguration" is not declared in Babel's scope tracker transform[stderr]: as a JavaScript value binding, and "@babel/plugin-transform-typescript" transform[stderr]: never encountered it as a TypeScript type declaration. transform[stderr]: It will be treated as a JavaScript value. transform[stderr]: transform[stderr]: This problem is likely caused by another plugin injecting transform[stderr]: "AudioConfiguration" without registering it in the scope tracker. If you are the author transform[stderr]: of that plugin, please use "scope.registerDeclaration(declarationPath)". BUNDLE ./index.js
error: node_modules/@livekit/react-native/src/index.tsx: /Users/osx/Documents/Projects/unic.chat.mobile/node_modules/@livekit/react-native/src/index.tsx: Exporting local "AudioConfiguration", which is not declared. 74 | export { 75 | AudioSession,
My babel config