I’m working on the Redwood JS tutorial and I’m getting this error when I try to create the Contact Page
]index.js:1 Warning: React.createElement: type is invalid – expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might have mixed up default and named imports.
Check the render method of ContactPage.
in ContactPage (created by PageLoader)
in PageLoader (created by Loaders)
in Loaders (created by RouterImpl)
in RouterImpl (created by LocationProvider)
in LocationProvider (created by Context.Consumer)
in Location (created by Router)
in Router (created by Routes)
in Routes
in FlashProvider (created by RedwoodProvider)
in ApolloProvider (created by GraphQLProvider)
in GraphQLProvider (created by RedwoodProvider)
in RedwoodProvider
in FatalErrorBoundary
I checked my import statements and the are correct. Is there an issue with rendering in Redwood js?
I’m sorry @ljdatasci, it seems most of the important parts of your last message got stripped out
Did you send the reply from your email client? Maybe come here to the site and post instead? It would also help if you put your code in a code block to keep the formatting of the code. Makes it much easier to read You start a code block by having three backticks at the beginning of a row, and end the code block in the same way. Like this
```
function sayHello() {
console.log('Hello World')
}
```
The code block above will render like this:
function sayHello() {
console.log('Hello World')
}