Qix-/color

Bug in code (I got error on my server) URGENT #218

adamasantares posted onGitHub

why

Why this number was changed in the last release?


posted by adamasantares over 3 years ago

This is not a typo. It's valid JavaScript.

posted by Qix- over 3 years ago

For people arriving here after googling the error: https://github.com/Qix-/color/issues/204

posted by MauricioRobayo over 3 years ago

I fully support using the latest and greatest js, including _ thousands separator

If you need to work around it to build storybook, or any other npm repo, and don't have the ability to use an older version of color, you can add the following rule to your webpack config :

{
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules\/(?!(color)\/).*/,
        include: [path.resolve(__dirname, 'node_modules', 'color')],
        use: [
          {
            loader: require.resolve('babel-loader')
          }
        ]
      }
    ]
  }
}
posted by NateFerrero over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests