question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERR_INVALID_ARG_TYPE

See original GitHub issue
[7:16:25 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Found 0 commits for package root since last release

[7:16:25 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Analysis of 0 commits complete: no release

[7:16:25 PM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"

[7:16:25 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"

[7:16:25 PM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"

[7:16:25 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"

[7:16:25 PM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"

[7:16:25 PM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"

[7:16:25 PM] [semantic-release] › ✖  Failed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"

[7:16:25 PM] [semantic-release] › ✖  An error occurred while running semantic-release: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type object

    at validateString (internal/validators.js:112:11)

    at Module.require (internal/modules/cjs/loader.js:842:3)

    at require (internal/modules/cjs/helpers.js:74:18)

    at semantic-release-monorepo (/opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release-plugin-decorators/src/wrapStep.js:41:24)

    at validator (/opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release/lib/plugins/normalize.js:34:30)

    at /opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release/lib/plugins/pipeline.js:37:40

    at next (/opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release/node_modules/p-reduce/index.js:17:9)

    at processTicksAndRejections (internal/process/task_queues.js:93:5) {

  code: 'ERR_INVALID_ARG_TYPE',

  pluginName: '[Function: semantic-release-monorepo]'

}

TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type object

    at validateString (internal/validators.js:112:11)

    at Module.require (internal/modules/cjs/loader.js:842:3)

    at require (internal/modules/cjs/helpers.js:74:18)

    at semantic-release-monorepo (/opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release-plugin-decorators/src/wrapStep.js:41:24)

    at validator (/opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release/lib/plugins/normalize.js:34:30)

    at /opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release/lib/plugins/pipeline.js:37:40

    at next (/opt/apps/partitioned-node/partition-1/fc77c055/workspace/_Excellence_runway_runway_semver/node_modules/semantic-release/node_modules/p-reduce/index.js:17:9)

    at processTicksAndRejections (internal/process/task_queues.js:93:5) {

  code: 'ERR_INVALID_ARG_TYPE',

  pluginName: '[Function: semantic-release-monorepo]'

}error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

script returned exit code 1

Here is my release file:

extends: "semantic-release-monorepo"
branches: 
    - master
    - semver
plugins:
    - "@semantic-release/commit-analyzer"
    - "@semantic-release/release-notes-generator"
    - "@semantic-release/changelog"
    - "@semantic-release/npm"
    - "@semantic-release/git"
    - - "@semantic-release/github":
        githubUrl: https://ghe.aa.com,
        githubApiPathPrefix: 'api/v3'

          

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
pmowrercommented, Jan 5, 2021

This configuration doesn’t look valid to me - looks like a mix of the old a new semantic-release config formats. Please refer to the semantic-release docs on plugin configuration: https://semantic-release.gitbook.io/semantic-release/usage/plugins#plugins

You probably want something like this:

branches:
  - name: main
plugins:
  - "@semantic-release/commit-analyzer"
  - "@semantic-release/release-notes-generator"
  - - "@semantic-release/exec"
    - generateNotesCmd: "echo \"${nextRelease.notes}\" > CHANGELOG.md"
0reactions
devtribecommented, Jan 5, 2021

Hi,

you’re right, SR used another .releaserc.

But i got the same error if i use @semantic-release/exec together with semantic-release-monorepo 😦 I want to generate a Changelog for my Monorepo without the publishing step

Here is my config:

branches:
  - name: main
plugins:
  - "@semantic-release/commit-analyzer"
  - "@semantic-release/release-notes-generator"
  - path: "@semantic-release/exec"
    generateNotesCmd: "echo \"${nextRelease.notes}\" > CHANGELOG.md"
Read more comments on GitHub >

github_iconTop Results From Across the Web

The "path" argument must be of type string ... - Stack Overflow
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined. I have no idea why this is happening.
Read more >
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
Have you run into the error “TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined”? In this story I'll go...
Read more >
The path argument must be of type string - Reactgo
In this tutorial, we are going to learn about how to fix the TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string....
Read more >
Why I got TypeError [ERR_INVALID_ARG_TYPE]: The "path ...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null at new NodeError (node:internal/errors:278:15) ...
Read more >
The "path" argument must be of type string. Received ...
Coding example for the question NodeJS - TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined-babel.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found