Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

[Bug] Addon was loaded twice #80

Closed
markokos01 opened this issue Aug 7, 2023 · 6 comments
Closed

[Bug] Addon was loaded twice #80

markokos01 opened this issue Aug 7, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@markokos01
Copy link

Describe the bug

After I installed addon and listed it in main.ts, I got an error:

@storybook/addon-styling was loaded twice, this could have bad side-effects

Steps to reproduce the behavior

  1. Install addon
  2. Add addon to main.ts
  3. Run storybook
  4. See console

Expected behavior

I do not exect any error in the console.

Environment

  • OS: macOS Ventura 13.4.1
  • Node.js version: v16.17.0
  • NPM version: 6.14.16
  • Browser (if applicable): Chrome
  • Browser version (if applicable): 115.0.5790.170
@markokos01 markokos01 added the bug Something isn't working label Aug 7, 2023
@dkario
Copy link

dkario commented Aug 7, 2023

might be duplicate of #67

@sookmax
Copy link

sookmax commented Aug 15, 2023

@integrayshaun hey this issue seems to be caused by the export managerEntries from src/preset.ts. In particular, It seems addon-styling is registered twice because of having both src/manager.ts and managerEntries in src/preset.ts at the same time.

Screen captures

Screenshot 2023-08-16 at 1 48 41 AM
Screenshot 2023-08-16 at 1 51 40 AM
Screenshot 2023-08-16 at 1 54 01 AM

@ShaunEvening
Copy link
Contributor

Hey @sookmax that's a great catch!!! I'll get a patch out for this today

@ShaunEvening
Copy link
Contributor

Hey folks! I have a canary build that i'm testing for this right now. Can anyone try out 1.3.7--canary.88.040cffe.0?

@sookmax
Copy link

sookmax commented Aug 25, 2023

@integrayshaun Hey Shaun nice job! looks like the warnings gone with the canary version 👍

@ShaunEvening
Copy link
Contributor

Amazing! Thank you for double checking for me @sookmax <3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants