Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Errors upgrading to v1.0.4 #7

Open
aitchiss opened this issue Jun 24, 2024 · 3 comments
Open

[Bug] Errors upgrading to v1.0.4 #7

aitchiss opened this issue Jun 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@aitchiss
Copy link

With v1.0.4 latest changes (#6) I'm seeing errors building storybook:

Module build failed (from ./node_modules/swc-loader/src/index.js):
Error: `env` and `jsc.target` cannot be used together

We're using storybook version 8.1.10 - is this something unique to our set up, or are you seeing the same?

@aitchiss aitchiss added the bug Something isn't working label Jun 24, 2024
@mcneiljv
Copy link

Seeing the exact same issue. Downgrading to 1.0.3 fixes it.

@dburles
Copy link

dburles commented Jul 16, 2024

Same issue here. Mine specifically is that I have an .swcrc at the root level of the project which is intended for configuring the source build of the component library. However, Storybook also inherits this configuration and applies its own defaults. My configuration specifies a target which is where the conflict arises.

@dburles
Copy link

dburles commented Jul 16, 2024

My solution was to split up the configuration .swcrc for Storybook and .swcrc-source for the built source, passing it with the --config-file cli argument.

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

No branches or pull requests

3 participants