Skip to content

Nuxt build fails due to missing SpeedCurve snippet module #810

@simonmaass

Description

@simonmaass

🐛 The bug

Running nuxt build fails during the server build with:
`
[UNLOADABLE_DEPENDENCY] Could not load #build/nuxt-scripts-speedcurve-snippet

`
This happens even though SpeedCurve is not configured in scripts.registry. It looks like @nuxt/scripts still auto-imports useScriptSpeedCurve, whose runtime imports #build/nuxt-scripts-speedcurve-snippet, but that template is only generated when config.registry.speedcurve is enabled.

🛠️ To reproduce

xx

🌈 Expected behavior

the virtual snippet module should either always be generated with an empty fallback, or useScriptSpeedCurve should not be auto-imported/bundled unless SpeedCurve is configured.

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions