Hi Everyone,
I am facing below error while starting kiban from plugin development environment with "yarn start"
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