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

"|" in className breaks compilation #10

Open
constgen opened this issue Oct 8, 2020 · 0 comments
Open

"|" in className breaks compilation #10

constgen opened this issue Oct 8, 2020 · 0 comments

Comments

@constgen
Copy link
Contributor

constgen commented Oct 8, 2020

Using vertical line in the slassName breaks compilation as it produces invalid JavaScript code

<div className="test-classname | test" />

I know this is weird. But this is valid HTML and should not fail.

The error is thrown during the build time

ERROR in ./src/images/Image.jsx 47:50
Module parse failed: Unexpected token (47:50)

Actual className

className: "images-ffe673fcf7-test-classname" test"

Expected className

className: "images-ffe673fcf7-test-classname images-ffe673fcf7-test"
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

1 participant