# Module not found: Error: Can't resolve '@kbn/i18n/react' in public components

**URL:** <https://discuss.elastic.co/t/module-not-found-error-cant-resolve-kbn-i18n-react-in-public-components/359834>\
**Category:** Kibana\
**Tags:** elastic-stack-monitoring, elastic-stack-security, elastic-stack-alerting\
**Created:** [May 20, 2024, 1:38pm UTC](https://discuss.elastic.co/t/module-not-found-error-cant-resolve-kbn-i18n-react-in-public-components/359834 "2024-05-20T13:38:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunil\_Jagtap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunil_jagtap/32/133604_2.png) [@Sunil\_Jagtap](https://discuss.elastic.co/u/Sunil_Jagtap)\
**Post date:** [May 20, 2024, 1:38pm UTC](https://discuss.elastic.co/t/module-not-found-error-cant-resolve-kbn-i18n-react-in-public-components/359834/1 "2024-05-20T13:38:22Z")

</div>

Hi Everyone,

I am facing below error while starting kiban from plugin development environment with "yarn start"

```auto
       ERROR in ./public/components/app.tsx
       │ Module not found: Error: Can't resolve '@kbn/i18n/react' in '/Users/sunil/Documents/workspace/kibana/src/plugins/work_register/public/components'
       │ resolve '@kbn/i18n/react' in '/Users/sunil/Documents/workspace/kibana/src/plugins/work_register/public/components'
       │ Parsed request is a module
       │ using description file: /Users/sunil/Documents/workspace/kibana/package.json (relative path: ./src/plugins/work_register/public/components)
       │ Field 'browser' doesn't contain a valid alias configuration
       │ resolve as module
       │ /Users/sunil/Documents/workspace/kibana/src/plugins/work_register/public/components/node_modules doesn't exist or is not a directory
       │ /Users/sunil/Documents/workspace/kibana/src/plugins/work_register/public/node_modules doesn't exist or is not a directory
       │ /Users/sunil/Documents/workspace/kibana/src/plugins/work_register/node_modules doesn't exist or is not a directory
       │ /Users/sunil/Documents/workspace/kibana/src/plugins/node_modules doesn't exist or is not a directory
       │ /Users/sunil/Documents/workspace/kibana/src/node_modules doesn't exist or is not a directory
       │ /Users/sunil/Documents/workspace/node_modules doesn't exist or is not a directory
       │ /Users/sunil/Documents/node_modules doesn't exist or is not a directory
       │ /Users/sunil/node_modules doesn't exist or is not a directory
       │ /Users/node_modules doesn't exist or is not a directory
       │ /node_modules doesn't exist or is not a directory
       │ looking for modules in /Users/sunil/Documents/workspace/kibana/node_modules
       │ using description file: /Users/sunil/Documents/workspace/kibana/package.json (relative path: ./node_modules)
       │ Field 'browser' doesn't contain a valid alias configuration
       │ using description file: /Users/sunil/Documents/workspace/kibana/node_modules/@kbn/i18n/package.json (relative path: ./react)
       │ no extension
       │ Field 'browser' doesn't contain a valid alias configuration
       │ /Users/sunil/Documents/workspace/kibana/node_modules/@kbn/i18n/react doesn't exist
       │ .js
       │ Field 'browser' doesn't contain a valid alias configuration
       │ /Users/sunil/Documents/workspace/kibana/node_modules/@kbn/i18n/react.js doesn't exist
       │ .ts
       │ Field 'browser' doesn't contain a valid alias configuration
       │ /Users/sunil/Documents/workspace/kibana/node_modules/@kbn/i18n/react.ts doesn't exist
       │ .tsx
       │ Field 'browser' doesn't contain a valid alias configuration
       │ /Users/sunil/Documents/workspace/kibana/node_modules/@kbn/i18n/react.tsx doesn't exist
       │ .json
       │ Field 'browser' doesn't contain a valid alias configuration
       │ /Users/sunil/Documents/workspace/kibana/node_modules/@kbn/i18n/react.json doesn't exist
       │ as directory
       │ /Users/sunil/Documents/workspace/kibana/node_modules/@kbn/i18n/react doesn't exist

```

Kindly suggest me the the way to add this module,

Module not found: Error: Can't resolve '@kbn/i18n/react' in public components  
@kbn/i18n/react doesn't exist in node\_modules

As per requirement testing,  
Kibana version 8.5.1  
python version 3.11

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [May 21, 2024, 8:01pm UTC](https://discuss.elastic.co/t/module-not-found-error-cant-resolve-kbn-i18n-react-in-public-components/359834/2 "2024-05-21T20:01:28Z")

</div>

Hi @Sunil_Jagtap. Have you run `yarn kbn bootstrap` to install the dependencies?

[More info in the documentation](https://www.elastic.co/guide/en/kibana/current/development-getting-started.html#_install_dependencies)

---

<div class="post-metadata">

**Author:** ![Sunil\_Jagtap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunil_jagtap/32/133604_2.png) [@Sunil\_Jagtap](https://discuss.elastic.co/u/Sunil_Jagtap)\
**Post date:** [May 22, 2024, 5:05am UTC](https://discuss.elastic.co/t/module-not-found-error-cant-resolve-kbn-i18n-react-in-public-components/359834/3 "2024-05-22T05:05:28Z")

</div>

Hi Nick,

Yes I did that - Issue resolved for now after I checked that module '@kbn/i18n/react' not exist at node\_modules instead that the module '@kbn/i18n-react' exists for version 8.5.1 & it worked.

Thank you.
