BuckleScript: How to update code to conform to latest bs-platform


#1

I’ve been using [@bs.deriving abstract] getters without the get suffix. After upgrading to bs-platform@4 I get thousands of warnings due to lack of usage of the get suffix for getters. Does bs-platform provide some codemod to avoid going manually changing all of these thousand out-of-date references?


#2

It doesn’t, which is really unfortunate. Luckily they’re thinking about adding a flag to rollback the change to the old way: https://github.com/BuckleScript/bucklescript/issues/2992

Until then, maybe just don’t upgrade :confused: It sucks that the change broke you without a good way to upgrade.


#3

Thanks for the fast response. I like how the community is taking care of these issues, so I guess I’ll just move on anyway.