Open
Description
📚 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
- 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