color.js icon indicating copy to clipboard operation
color.js copied to clipboard

Support for the experimental syntax 'classPrivateMethods' isn't currently enabled

Open dungle-scrubs opened this issue 2 years ago • 1 comments

I'm attempting to use this library in a React CodeSandbox, but I get the error:

Support for the experimental syntax 'classPrivateMethods' isn't currently enabled.

I've tried adding @babel/plugin-proposal-private-methods to my .babelrc but the error remains.

Any suggestions?

dungle-scrubs avatar Sep 29 '22 05:09 dungle-scrubs

Hi there,

I think this is a React CodeSandbox issue, could you try creating an issue here? https://github.com/codesandbox/codesandbox-client/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc

Class private methods aren't exactly cutting edge at this point…

LeaVerou avatar Sep 29 '22 13:09 LeaVerou