DEV Community

Discussion on: Need help with next.config.js

Collapse
 
alejandronanez profile image
Alejandro Ñáñez Ortiz

This is a bit difficult to read, I'd suggest using

``` so the code looks a bit better.

Still, I think that your problem is that you have



module.exports = webpack: (config) => {


And it should be



module.exports = (config) => {


Collapse
 
kulgeek profile image
isaack okello brian

And the rest should remain as is? Sorry im super new to this, can you rewrite the whole of it. Teach me sensei

Collapse
 
kulgeek profile image
isaack okello brian

Heres the polacode

Collapse
 
alejandronanez profile image
Alejandro Ñáñez Ortiz

No worries, everyone has been new to something in their life.

I should try with what I suggested and paste the error again, remember to wrap your code within


Thread Thread
 
kulgeek profile image
isaack okello brian

Okay let me try that

Thread Thread
 
kulgeek profile image
isaack okello brian
Thread Thread
 
kulgeek profile image
isaack okello brian

Theres the error - can you see the screenshots?

Thread Thread
 
alejandronanez profile image
Alejandro Ñáñez Ortiz

What error are you getting? 🤔

Do you have it on a repo/gist or something?

Thread Thread
 
kulgeek profile image
isaack okello brian

@alejandro Ñanez Ortiz here is a github link github.com/kulgeek/rds-app/blob/ma...

 
kulgeek profile image
isaack okello brian
Collapse
 
kulgeek profile image
isaack okello brian

I still get an error but I uploaded a cover photo