Skip to content

@nx/vue stories generator fails with: The "path" argument must be of type string #30955

Closed
@eduardoRoth

Description

@eduardoRoth

Current Behavior

When running nx g @nx/vue:stories --interactionTests=true an error occurs if a new story has to be created.

Expected Behavior

Stories should be created after running the generator.

GitHub Repo

No response

Steps to Reproduce

  1. Create a new Vue or Nuxt project
  2. Generate a new Vue library
  3. Configure the library with storybook-configuration generator
  4. Create a component in the Vue library
  5. Run the stories generator for the vue library

Nx Report

NX   Report complete - copy this into the issue template

Node           : 20.18.2
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 11.3.0

nx (global)        : 20.8.1
nx                 : 20.8.1
@nx/js             : 20.8.1
@nx/eslint         : 20.8.1
@nx/workspace      : 20.8.1
@nx/cypress        : 20.8.1
@nx/devkit         : 20.8.1
@nx/eslint-plugin  : 20.8.1
@nx/nuxt           : 20.8.1
@nx/playwright     : 20.8.1
@nx/storybook      : 20.8.1
@nx/vite           : 20.8.1
@nx/vue            : 20.8.1
@nx/web            : 20.8.1
typescript         : 5.7.3
---------------------------------------
Registered Plugins:
@nx/js/typescript
@nx/eslint/plugin
@nx/vite/plugin
@nx/nuxt/plugin
@nx/playwright/plugin
@nx/storybook/plugin
---------------------------------------
Cache Usage: 484.00 B / 92.64 GB

Failure Logs

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at Object.join (node:path:1269:7)
    at joinPathFragments (***/node_modules/nx/src/utils/path.js:23:31)
    at createComponentStories (***/node_modules/@nx/vue/src/generators/stories/lib/component-story.js:14:62)
    at ***/node_modules/@nx/vue/src/generators/stories/stories.js:40:56
    at Array.map (<anonymous>)
    at createAllStories (***/node_modules/@nx/vue/src/generators/stories/stories.js:37:38)
    at storiesGenerator (***/node_modules/@nx/vue/src/generators/stories/stories.js:55:11)
    at ***/node_modules/nx/src/command-line/generate/generate.js:240:32
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async handleErrors (***/node_modules/nx/src/utils/handle-errors.js:8:24) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions