rsnext/errors/promise-in-next-config.md
Tim Neutkens 3e51ddb8af
Move syntax formatting to prettier (#7454)
* Run prettier over packages/**/*.js

* Run prettier over packages/**/*.ts

* Run prettier over examples

* Remove tslint

* Run prettier over examples

* Run prettier over all markdown files

* Run prettier over json files
2019-05-29 13:57:26 +02:00

444 B

Promise In Next Config

Why This Error Occurred

The webpack function in next.config.js returned a promise which is not supported in Next.js. For example, below is not supported:

module.exports = {
  webpack: async function(config) {
    return config
  },
}

Possible Ways to Fix It

Check your next.config.js for async or return Promise

Potentially a plugin is returning a Promise from the webpack function.