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

Identifier directly after number (257:26) #221

Closed
JuniorMiksza8 opened this issue Sep 10, 2021 · 1 comment
Closed

Identifier directly after number (257:26) #221

JuniorMiksza8 opened this issue Sep 10, 2021 · 1 comment
Labels

Comments

@JuniorMiksza8
Copy link

Node version : 14.7.0
webpack version : 4
storybook version : 6
color version : 4.0.1
After installing this package i've got this problem running storybook.

`ModuleParseError: Module parse failed: Identifier directly after number (257:26)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| for (const [i, element] of rgb.entries()) {
| const chan = element / 255;

                  lum[i] = (chan <= 0.039_28) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;

| }`

Couldnt find a fix so i downgrade the version to color@3.2.0.

If anyone fixed the webpack error using the latest version, please let me know.

@Qix-
Copy link
Owner

Qix- commented Sep 10, 2021

Yes, open an issue with webpack. That's how you'll get them to support valid JavaScript.

Also, please search the issues next time.

@Qix- Qix- closed this as completed Sep 10, 2021
Repository owner locked as resolved and limited conversation to collaborators Sep 10, 2021
@Qix- Qix- added the wontfix label Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants