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

Plugin "@netlify/build" internal error #5299

Open
DanZhangSitecore opened this issue Sep 19, 2023 · 2 comments
Open

Plugin "@netlify/build" internal error #5299

DanZhangSitecore opened this issue Sep 19, 2023 · 2 comments
Labels
type: bug code to address defects in shipped code

Comments

@DanZhangSitecore
Copy link

Describe the bug

Hi I have installed the netlify CLI in a new laptop(Windows 11).
I have the following error when I run netlify dev, but if I run npm run dev it works without problem

Plugin "@netlify/build" internal error
────────────────────────────────────────────────────────────────

Error message
Plugin exited with exit code 1 and signal null.
The plugin might have exited due to a bug terminating the process, such as an infinite loop.
The plugin might also have explicitly terminated the process, for example with process.exit().
Plugin methods should instead:
- on success: return
- on failure: call utils.build.failPlugin() or utils.build.failBuild()

Plugin details
Package: @netlify/build
Version: 29.21.1
Repository: https://github.com/netlify/build.git
npm link: https://www.npmjs.com/package/@netlify/build
Report issues: https://github.com/netlify/build/issues

Error location
While loading "@netlify/build" from core

Steps to reproduce

  1. install netlify cli by running npm install netlify-cli -g
  2. wait for it to finish installed
  3. run the command netlify dev

CLI command and flags

netlify dev

Configuration

[build]
functions = "functions"

[[plugins]]
package = "@netlify/plugin-emails"

CLI output

Plugin "@netlify/build" internal error
────────────────────────────────────────────────────────────────

Error message
Plugin exited with exit code 1 and signal null.
The plugin might have exited due to a bug terminating the process, such as an infinite loop.
The plugin might also have explicitly terminated the process, for example with process.exit().
Plugin methods should instead:
- on success: return
- on failure: call utils.build.failPlugin() or utils.build.failBuild()

Plugin details
Package: @netlify/build
Version: 29.21.1
Repository: https://github.com/netlify/build.git
npm link: https://www.npmjs.com/package/@netlify/build
Report issues: https://github.com/netlify/build/issues

Error location
While loading "@netlify/build" from core

Environment

System:
OS: Windows 10 10.0.22621
CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1365U
Memory: 7.68 GB / 15.60 GB
Binaries:
Node: 20.6.1 - C:\Program Files\nodejs\node.EXE
npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD

@DanZhangSitecore DanZhangSitecore added the type: bug code to address defects in shipped code label Sep 19, 2023
@DanZhangSitecore DanZhangSitecore changed the title Please replace with a clear and descriptive title Plugin "@netlify/build" internal error Sep 19, 2023
@jimmend
Copy link

jimmend commented Oct 11, 2023

I just received the same error. Did you ever get any resolution on this?

@michaelvcolianna
Copy link

michaelvcolianna commented Mar 5, 2024

@DanZhangSitecore && @jimmend - Sorry to bump but: Looks like it's the Node version - my company's project uses 20.6.x and plugins fail. I'm investigating to see if it's related to this, and if our project can be downgraded to 18.

For verification, I made a test project (https://github.com/michaelvcolianna/svelte-test) - second commit with the plugin addition worked. Third commit specifying Node 20.6.x failed in the same way.

Are you able to remove the Node 20 specifications in your projects and see if they work?

Updated: It's 20.6.0 itself. Updating to latest 20 did not break our project & the plugin works.

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

3 participants