adrianhajdin / project_e_commerce

This is a code repository for the corresponding video tutorial. In this video, we're going to build a fully functional eCommerce application using commerce.js.
https://jsmastery.pro
1.88k stars 506 forks source link

Check the render method of `Form` #49

Open mohammadalizafar opened 2 years ago

mohammadalizafar commented 2 years ago

× Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

I Have got same issue any solution plz?

shvkumar7777 commented 2 years ago

Could you please share the code snippet here please

rjmead23 commented 2 years ago

Without the code throwing the error this is going to be hard for people to help you out. Are you able to paste the code here?

If you are talking about an issue in the CustomTextField.jsx file then I had to change from this:

` return (

);`

to add render like this:

`return (

( )} />

);`