netlify / functions

JavaScript and TypeScript utilities for Netlify Functions.
https://www.npmjs.com/package/@netlify/functions
MIT License
40 stars 18 forks source link

Cant Start Netlify Dev #393

Open theobouwman opened 1 year ago

theobouwman commented 1 year ago

I get this error. But I want to uninstall emails plugin which is causing the error.

How can I fix this? Im on latest netlify functions 1.4.0

$ netlify dev   
\◈ Netlify Dev ◈
◈ Injecting environment variable values for all scopes
◈ Injected site settings env var: MAILGUN_DOMAIN
◈ Injected site settings env var: MAILGUN_PROVIDER_API_KEY
◈ Injected site settings env var: MAILJET_KEY
◈ Injected site settings env var: MAILJET_SECRET
◈ Setting up local development server
​
❯ Installing plugins
   - @netlify/plugin-nextjs@4.31.0
   - @netlify/plugin-emails@1.0.3
​
  Dependencies installation error                               
────────────────────────────────────────────────────────────────
​
  Error message
  Error while installing dependencies in /Users/theobouwman/dev/projects/momo/momo-website/.netlify/plugins/
​​
  Resolved config
  build:
    command: npm run build
    commandOrigin: config
    publish: /Users/theobouwman/dev/projects/momo/momo-website/.next
    publishOrigin: config
  functionsDirectory: /Users/theobouwman/dev/projects/momo/momo-website/netlify/functions
  plugins:
    - inputs: {}
      origin: ui
      package: '@netlify/plugin-nextjs'
    - inputs: {}
      origin: ui
      package: '@netlify/plugin-emails'
 ›   Error: Could not start local development server

Error while installing dependencies in /Users/theobouwman/dev/projects/momo/momo-website/.netlify/plugins/

Error: Error while installing dependencies in /Users/theobouwman/dev/projects/momo/momo-website/.netlify/plugins/

    at runCommand (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/install/main.js:20:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async installMissingPlugins (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/install/missing.js:16:5)
    at async handleMissingPlugins (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/plugins/resolve.js:97:5)
    at async resolvePluginsPath (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/plugins/resolve.js:32:29)
    at async tGetPluginsOptions (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/plugins/options.js:12:29)
    at async tGetPluginsOptions (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/time/main.js:18:63)
    at async initAndRunBuild (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/core/build.js:241:66)
    at async runAndReportBuild (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/core/build.js:144:156)
    at async tExecBuild (file:///Users/theobouwman/.config/yarn/global/node_modules/@netlify/build/lib/core/build.js:92:127)
lemusthelroy commented 1 year ago

Thanks for filing this issue. Just wondering what is making you believe this is related to the emails plugin?

Reason I ask is that the emails plugin has no dependencies. Is this a consistent error that you are seeing?

The emails plugin can be removed by disabling the emails integration via the Netlify UI.