rsnext/errors/promise-in-next-config.md
k-kawakami d9060f5abd Remove trailing spaces (#6547)
### changes
#### remove trailing spaces

When I was using example I noticed trailing spaces.
So, this PR removes the trailing spaces of json file, README, and others.

`examples/with-jest-typescript/src/modules/cars/Overview.tsx` also has it, but this time it did not change as tslint error occurs at commit.
2019-03-07 17:40:08 +01:00

443 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.