megawac / babel-plugin-ramda

Easy :ram: modular builds
311 stars 33 forks source link

Ramda method A was not a known function #53

Open Tomcatus opened 4 years ago

Tomcatus commented 4 years ago

I've come across that error for a few functions like mergeRight and includes. I'm using babel-plugin-ramda version of 2.0.0 with ramda on version 0.27.0. My configuration for babel lives in my webpack config, in this part:

rules: [
      {
        test: /\.js$/,
        exclude: /mapbox-gl/,
        use: [
          {
            loader: 'babel-loader',
            options: {
              presets: ['@babel/preset-env', '@babel/preset-react'],
              plugins: [
                'ramda',
                'babel-plugin-styled-components',
                '@babel/plugin-proposal-class-properties',
                '@babel/plugin-syntax-dynamic-import'
              ]
            }
          }
        ]
      },

I've tried to look this issue up and found some similar ones but I couldn't apply any of those solutions here. Any ideas what I might be doing wrong here?