Babel error because of Class Static Blocks

Hi there, I’m getting this error in one of my modules (kaplayJS):

=> Errors prevented startup:                  
   
   While building for web.browser:
   node_modules/kaplay/dist/kaplay.mjs: /Users/.../node_modules/kaplay/dist/kaplay.mjs: Static
   class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.
     18 |   };
    19 | })();
   > 20 | var K = class t {
       |         ^
    21 |   static {
    22 |     s(this, "Color");
    23 |   }
   
=> Your application has errors. Waiting for file change.

But adding @babel/plugin-transform-class-static-block does not resolve the error.

Please advise.

Hi @pierre777 I think this package is delivered as an mjs and Meteor does not support it.
Maybe try to import specifically from /dist/kaplay.cjs.

I

Hey @paulishca that was in fact the issue. Thanks!!!
I resolved it by creating a .meteorignore file and adding:

node_modules/kaplay/dist/kaplay.mjs
node_modules/kaplay/dist/kaplay.mjs.map