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

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

Open
sarmatkasaev opened this issue Nov 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sarmatkasaev
Copy link

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 sarmatkasaev added the bug Something isn't working label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants