Skip to content

Classnames are not unique #431

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

Closed
jeffijoe opened this issue Feb 26, 2017 · 4 comments
Closed

Classnames are not unique #431

jeffijoe opened this issue Feb 26, 2017 · 4 comments

Comments

@jeffijoe
Copy link

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Classnames are not unique

What is the expected behavior?

Classnames should be unique

If this is a feature request, what is motivation or use case for changing the behavior?

Have 2 modules with the same name in 2 different folders. E.g.

components
- Form
  - Form.css
  - index.jsx -> import styles from './Form.css'
screens
- Account
  - Form
    - Form.css
    - index.jsx -> import styles from './Form.css'

I believe the ident hash is generated base on a relative import path ./Form.css, which would be the same in both cases. If you used an absolute path (or at least relative to the source root) that would help.

Please mention other relevant information such as your webpack version, Node.js version and Operating System.

  • Webpack 2.2.1
  • Node 6.9.5
  • maxOS Sierra

image

@jeffijoe
Copy link
Author

This is actually a dupe of #413.

@bebraw
Copy link
Contributor

bebraw commented Feb 27, 2017

Yeah, let's close in favor of that.

@bebraw bebraw closed this as completed Feb 27, 2017
@tvrcgo
Copy link

tvrcgo commented Mar 16, 2017

Running into the same issue.

@bebraw
Copy link
Contributor

bebraw commented Mar 16, 2017

@tvrcgo Can you check #413 ? They are discussing some solutions there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants