SpiceQA
Questions Tags Users Badges

Nextjs emotionjs and vercel: Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: ..@emotion/cache/node_modules/stylis/dist/stylis.umd.js

user_11890116 0
Created Jun 23, 2020 Edited Jun 23, 2020
Viewed 985

Here's the message when deployed. Code to replicate this error: http://github.com/jojonicho/next-apollo-codegen

error message

vercel emotion next.js
Share
1 Answers

I fixed it by removing the next.config.js file entirely.

edited Jun 26, 2020
user_118901160
answered Jun 26, 2020
Related
Terms of service Privacy policy
Powered by Answer