babel icon indicating copy to clipboard operation
babel copied to clipboard

Cannot find module 'meteor-babel/plugins/dynamic-import'

Open Floriferous opened this issue 6 years ago • 2 comments

We're using meteor-babel in our wallabyJS config, and a recent update to this package has broken it.

Here's the compilers part:

compilers: {
          '**/*.js?(x)': wallaby.compilers.babel({
            presets: ['meteor', '@babel/preset-react', '@babel/preset-flow'],
            plugins: [
              '@babel/plugin-transform-modules-commonjs',
              '@babel/plugin-proposal-class-properties',
              'meteor-babel/plugins/dynamic-import', // Disabling this generates another error
            ],
          }),
        },

If I disable the use of the meteor-babel plugin, I get this error:

SyntaxError: Support for the experimental syntax 'dynamicImport' isn't currently enabled

How to enable dynamic import now?

Floriferous avatar Jul 19 '19 12:07 Floriferous

Switching back to 7.4.4 makes it work again. Not sure how to make wallabyJS play nicely with Reify?

Some hints here: https://github.com/wallabyjs/public/issues/797

Floriferous avatar Jul 19 '19 12:07 Floriferous

@Floriferous

Are you still on 7.4.4 or have you found another solution?

HemalR avatar Dec 25 '19 03:12 HemalR