Skip to content
TheChatArchiveThe Chat Archive
gpt-4.1-2025-04-14· OpenAIHugging Face LMArena Human Preference 140K

Cannot automatically write to dynamic config at: app.config.js Add the following to your…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Geminigemini-2.5-pro’s answer.
  1. User

    Cannot automatically write to dynamic config at: app.config.js Add the following to your Expo config

    { "plugins": [ "expo-localization" ] }

  2. Assistant

    Great catch! When you use expo-localization in your Expo app, Expo requires you to add the plugin to your app configuration so it can properly include the native code for all platforms.

    How to Fix

    If you use app.json (most common):

    Add the following to your app.json:

    {
      "expo": {
        // ... other config ...
        "plugins": [
          "expo-localization"
        ]
      }
    }
    

    If you use app.config.js:

    Add the plugin to the exported config:

    export default {
      // ... other config ...
      plugins: [
        "expo-localization"
      ]
    };
    

    If you use app.config.ts:

    Add the plugin to the exported config:

    export default {
      // ... other config ...
      plugins: [
        "expo-localization"
      ]
    };
    

    After updating your config, restart your Expo server:

    npx expo start -c
    

    This ensures the changes are picked up.


    Summary:
    Just add "expo-localization" to the plugins array in your Expo config file (app.json, app.config.js, or app.config.ts). This is required for localization to work correctly on all platforms.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.