You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The useScript module is not functioning as expected when used within the Nuxt/Storybook environment. This issue is causing scripts to not load or execute properly, which affects the functionality of components relying on external scripts.
Steps to Reproduce
Set up a Nuxt project with Storybook integration.
Import and use the useScript module in a component.
Attempt to load the component in Storybook.
Expected Behavior
The useScript module should load and execute the specified scripts correctly within the Storybook environment, just as it does in the Nuxt application.
Actual Behavior
The scripts do not load or execute properly, leading to missing functionality in the components.
Environment
Nuxt version: [3.12.4]
Storybook version: [8.2.0]
useScript module version: [0.9.5]
Additional Information
The issue does not occur when running the Nuxt application outside of Storybook.
No errors are logged in the console, making it difficult to diagnose the problem.
Warning in console after trigger loading script - [Vue warn] onScopeDispose() is called when there is no active effect scope to be associated with.
🔍 What have you tried?
No response
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered:
The way nuxt storybook works currently is kinda buggy. It does runs two different config for Nuxt, one to build and one to be ran within storybook.
They do have an issue to possibly fix this issue by having a single unified config.
📚 What are you trying to do?
Description
The
useScript
module is not functioning as expected when used within the Nuxt/Storybook environment. This issue is causing scripts to not load or execute properly, which affects the functionality of components relying on external scripts.Steps to Reproduce
useScript
module in a component.Expected Behavior
The
useScript
module should load and execute the specified scripts correctly within the Storybook environment, just as it does in the Nuxt application.Actual Behavior
The scripts do not load or execute properly, leading to missing functionality in the components.
Environment
Additional Information
🔍 What have you tried?
No response
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: