storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.55k stars 9.29k forks source link

[Bug]: Conflicting values for 'process.env.NODE_ENV' when using Angular builders #19973

Open evtk opened 1 year ago

evtk commented 1 year ago

Describe the bug

When using the @storybook/angular:start-storybook I get terminal logging, that I do not get when running without the builders and just triggering an npm run storybook.

I get this with a fresh NG14 + Storybook setup.

WARNING in DefinePlugin
Conflicting values for 'process.env.NODE_ENV'

1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)

1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

Do I have something misconfigured or do I need to apply additional configuration?

To Reproduce

https://github.com/evtk/storybook-playground

System

Environment Info:

  System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 16.18.0 - /opt/homebrew/opt/node@16/bin/node
    npm: 8.19.2 - /opt/homebrew/opt/node@16/bin/npm
  Browsers:
    Chrome: 107.0.5304.121
    Safari: 16.1

Additional context

No response

gvlekke commented 1 year ago

Same here with Storybook 7.0.0-rc.5 and Node 18.12.1 on windows:

./node_modules/@storybook/addon-docs/dist/chunk-R4NKYYJA.mjs 1:45-52Critical dependency: require function is used in a way in which dependencies cannot be statically extracted./node_modules/@storybook/addon-docs/dist/chunk-R4NKYYJA.mjs 4:35-42

Critical dependency: require function is used in a way in which dependencies cannot be statically extractedundefined undefinedDefinePluginConflicting values for 'process.env.NODE_ENV'

Also interactions are not visible, but im not sure if that is caused by this problem

epliXs commented 8 months ago

Still there. Storybook 7.6.17

advdv commented 7 months ago

Still an issue on Storybook 8.0.0

kasir-barati commented 6 months ago

What does this warning means to begin with?

evtk commented 2 months ago

@shilman this is still an issue with storybook 8.2.9, any updates?

shilman commented 2 months ago

@valentinpalkovic any thoughts on this one?