client-sdk-react-native icon indicating copy to clipboard operation
client-sdk-react-native copied to clipboard

The exported identifier "AudioConfiguration" is not declared in Babel's scope tracker

Open sarmatkasaev opened this issue 2 years ago • 0 comments

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,

76 | AudioConfiguration, | ^^^^^^^^^^^^^^^^^^ 77 | AndroidAudioTypeOptions, 78 | AndroidAudioTypePresets, 79 | };

My babel config

presets: ['module:metro-react-native-babel-preset'],
plugins: [
	['@babel/plugin-proposal-decorators', { legacy: true }],
	'react-native-reanimated/plugin',
	'@babel/plugin-transform-named-capturing-groups-regex',
	['module:react-native-dotenv']
],
env: {
	production: {
		plugins: ['transform-remove-console']
	}
}

sarmatkasaev avatar Nov 13 '23 10:11 sarmatkasaev