Skip to content

Story filename issues #30

Description

@davestewart

A few things I have noticed with story names:

Renaming stories can break the build

[9:12:38 AM]  ERROR  Pre-transform error: Failed to load url /stories/core/data/UiColorKey.story.vue?nuxt_component=async&nuxt_component_name=UiColorKeyStory&nuxt_component_export=default (resolved id: /Volumes/Data/Work/Clients/Forgd/forgd/apps/bedtime.internal/stories/core/data/UiColorKey.story.vue?nuxt_component=async&nuxt_component_name=UiColorKeyStory&nuxt_component_export=default) in virtual:nuxt:%2FVolumes%2FData%2FWork%2FClients%2FForgd%2Fforgd%2Fapps%2Fbedtime.internal%2F.nuxt%2Fcomponents.plugin.mjs. Does the file exist?

Not the end of the world, but worth handling gracefully if possible

Story filenames with spaces break the build

Note: ... is where I removed imports, for clarity:

 ERROR  Internal server error: Unexpected token (2:2305)                                 9:16:39 AM
  Plugin: unctx:transform
  File: virtual:nuxt:%2FVolumes%2FData%2FWork%2FClients%2FForgd%2Fforgd%2Fapps%2Fbedtime.internal%2F.nuxt%2Fcomponents.plugin.mjs:2:2305
  1  |  import { defineNuxtPlugin } from '#app/nuxt'
  2  |  import { ... LazyUi Color KeyStory, ... } from '#components'
     |                                                                                                                                                                                       

Default story titles have the word Story concatenated to the end

UiColorKey.story.vue

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions