Discussions

Ask a Question
Back to All

The "static" Keyword broke the build Process

Hi there :)
I am using Quasar with webpack for the frontend of my Plugin. I updated to the newest Version of the Plugin Adapter ( 1.1.0 ) and it broke the build of the frontend because of the static keyword from your plugin. This is used at 2 locations in the Plugin adapter:

export class PluginAdapter {
    static CONFIG_SRC_SUFFIX = '-cfg';
    jwkStore;
    initAdapter;

and

export class JwkStore {
    static instance;
    localCryptoKeys = [];
    remoteCryptoOrigins = [];

I resolved the issue by adding the 'babel-loader' for the coyoapp folder in node_modules. So if anyone stumbles across this, here is the solution i used:

cfg.module.rules.push({
        test: /\.js$/,
        include: path.resolve(__dirname, 'node_modules/@coyoapp'),
        use: [{
          loader: 'babel-loader',
        }],
      });