Qix-/color

Identifier directly after number (257:26) #221

JuniorMiksza8 posted onGitHub

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.


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

Also, please search the issues next time.

posted by Qix- over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests