Skip to content
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

Running netlify dev causes esm loader error #6605

Open
sakanaproductions opened this issue May 14, 2024 · 0 comments
Open

Running netlify dev causes esm loader error #6605

sakanaproductions opened this issue May 14, 2024 · 0 comments
Labels
type: bug code to address defects in shipped code

Comments

@sakanaproductions
Copy link

Describe the bug

With a clean netlify install, either globally or within a project, I get the following error when running netlify dev

node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^

Error: Cannot find package '/Users/James.Fishback/.config/yarn/global/node_modules/@netlify/build/node_modules/@netlify/config/package.json' imported from /Users/James.Fishback/.config/yarn/global/node_modules/@netlify/build/lib/log/messages/config.js
Did you mean to import "@netlify/config/lib/index.js"?
    at legacyMainResolve (node:internal/modules/esm/resolve:213:26)
    at packageResolve (node:internal/modules/esm/resolve:831:14)
    at moduleResolve (node:internal/modules/esm/resolve:901:20)
    at defaultResolve (node:internal/modules/esm/resolve:1131:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v21.6.2```

### Steps to reproduce

1. yarn global add netlify-cli or yarn add netlify-cli
2. netlify dev

### Configuration

N/A

### Environment

  System:
    OS: macOS 14.1.2
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 38.11 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.6.2 - ~/.nvm/versions/node/v21.6.2/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v21.6.2/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v21.6.2/bin/npm
    pnpm: 9.1.1 - ~/.nvm/versions/node/v21.6.2/bin/pnpm
    Watchman: 2023.12.04.00 - /usr/local/bin/watchman
  npmPackages:
    netlify-cli: ^17.23.5 => 17.23.5 
@sakanaproductions sakanaproductions added the type: bug code to address defects in shipped code label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant