Hi @Mansi Gusain Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.
The error is most likely caused by improper import / require statements in your files, as well as the export for the components you're importing/requiring.
If you are using ES6
and you export your classes using default keyword, make sure your import statements are as follows
While exporting
export default class MyInput extends React.Component {
...
}
You need to then import the above component as follows import MyComponent from './my-component'
If you export the class using named approach, i.e., without using the default keyword then, you would need to access it as follows
While exporting
export class MyInput extends React.Component {
...
}
While importing the above declaration, follow this import { MyComponent } from './my-component'
Please look for all the references in your files and see if this resolves the issue. If you still face the same error after validation, kindly share your code snippets with us for further analysis.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.