GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Module not found: Can't resolve 'unfetch' · Issue #172 · developit/unfetch

Module not found: Can't resolve 'unfetch' #172

New issue
Copy link
New issue
Copy link
Open
Open
Module not found: Can't resolve 'unfetch'#172
Copy link

Description

@tungrix
tungrix
opened on Jul 7, 2023
Issue body actions

I have followed the official instruction to install unfetch npm i unfetch; however, when I import fetch from 'unfetch', Module not found: Can't resolve 'unfetch' pop out, I am using latest version of Next.js.

Reacted by asins, Toan Ho and Christopher Gwizdala

Activity

  1. asins commented on Jul 23, 2023

    @asins
    asins
    on Jul 23, 2023
    More actions

    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"
        },
    Reacted by Tiago Amaro, lsdsjy and Luca Bertelli
  2. waringr commented on Dec 8, 2023

    @waringr
    waringr
    on Dec 8, 2023
    More actions

    At the risk of asking a dumb question, is that my package.json, or the one from isomorphic-unfetch? TIA

    Reacted by Seif and Manuel Kaufmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.