Qix-/color

The issue has been closed
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.