New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found: Can't resolve 'unfetch' #172
Comments
I also had the same issue and the solution was to change the 'exports' in the 'package.json' file to the following: "exports": {
".": {
"import": "./dist/unfetch.mjs",
"default": "./dist/unfetch.js"
}, |
At the risk of asking a dumb question, is that my package.json, or the one from isomorphic-unfetch? TIA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have followed the official instruction to install unfetch
npm i unfetch
; however, when Iimport fetch from 'unfetch'
,Module not found: Can't resolve 'unfetch'
pop out, I am using latest version of Next.js.The text was updated successfully, but these errors were encountered: