Skip to content

Melektron #2986

@Milanhe92

Description

@Milanhe92

Ispravljena greška: plugin-nextjs ne prihvata version input
The Netlify deploy errored, with the following guidance provided:

Diagnosis:
The error is caused by an invalid input in the "@netlify/plugin-nextjs" plugin configuration. The plugin does not accept any inputs, but a "version" input with the value of 5.11.4 was specified in the configuration.

Solution:
To resolve this issue, you need to remove the "version" input from the configuration of the "@netlify/plugin-nextjs" plugin. Verify that the package is in the package.json or the file was committed to the repository before editing the plugin configuration.

The relevant error logs are:

Line 46: �[36m�[1m​�[22m�[39m
Line 47: �[36m�[1m❯ Context�[22m�[39m
Line 48: branch-deploy
Line 49: �[36m�[1m​�[22m�[39m
Line 50: �[36m�[1m❯ Installing plugins�[22m�[39m
Line 51: - @netlify/plugin-emails@1.1.1
Line 52: �[91m�[1m​�[22m�[39m
Line 53: �[91m�[1mPlugin "@netlify/plugin-nextjs" invalid input "version" �[22m�[39m
Line 54: �[91m�[1m────────────────────────────────────────────────────────────────�[22m�[39m
Line 55: ​
Line 56: �[31m�[1mError message�[22m�[39m
Line 57: Plugin "@netlify/plugin-nextjs" does not accept any inputs but you specified: "version"
Line 58: Check your plugin configuration to be sure that:
Line 59: - the input name is spelled correctly
Line 60: - the input is included in the plugin's available configuration options
- the plugin's input requirements have not chang
Line 61: Plugin inputs
Line 62: version: 5.11.4
Line 63: ​
Line 64: �[31m�[1mPlugin details�[22m�[39m
Line 65: Package: @netlify/plugin-nextjs
Line 66: Version: 5.11.4
Line 67: Repository: git+https://github.com/opennextjs/opennextjs-netlify.git
Line 68: npm link: https://www.npmjs.com/package/@netlify/plugin-nextjs
Line 69: Report issues: https://github.com/opennextjs/opennextjs-netlify/issues
Line 70: ​
Line 71: �[31m�[1mError location�[22m�[39m
Line 72: While loading "@netlify/plugin-nextjs" from netlify.toml and package.json
Line 73: ​
Line 74: �[31m�[1mResolved config�[22m�[39m
Line 75: build:
Line 76: command: npm run build
Line 77: commandOrigin: config
Line 78: environment:
Line 79: - CONTENT_SECURITY_POLICY_BUILD_TOKEN
Line 80: - Milanhe92
Line 81: - NETLIFY_EMAILS_DIRECTORY
Line 91: - inputs: {}
Line 92: origin: ui
Line 93: package: "@netlify/plugin-emails"
Line 94: - inputs: {}
Line 95: origin: config
Line 96: package: "@netlify/plugin-nextjs"
Line 97: redirects:
Line 98: - from: /donacije
Line 99: status: 200
Line 100: to: /donacije.html
Line 101: Failed during stage 'building site': Build script returned non-zero exit code: 2
Line 102: - from: /*
status: 200
to: /index.html
redirectsOrigin: config
Line 103: Build failed due to a user error: Build script returned non-zero exit code: 2
Line 104: Failing build: Failed to build site
Line 105: Finished processing build request in 16.692s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions