Open yee94 opened 4 years ago
Having this right now as well. Maybe related with https://github.com/styled-components/babel-plugin-styled-components/issues/271 .
Interesting observation from our side:
src/features/...
and some at src/common/...
../package.json
but also at src/common/package.json
. (This is because our src/common/
directory is actually a git subrepo that is shared between multiple projects.)src/common/package.json
file, the problem disappears.So maybe as described in https://github.com/styled-components/babel-plugin-styled-components/issues/271 , if there are components being built by several projects, then there's some hash collision happening in https://github.com/styled-components/babel-plugin-styled-components/blob/master/src/visitors/displayNameAndId.js#L95 ... Not sure, I might be completely wrong, but just adding our three cents.
https://github.com/styled-components/babel-plugin-styled-components/issues/24
I think this bug appeared again in 5.x.
The above code is normal in the development environment of development. But after production, they have the same className.