babel-plugin-angularjs-annotate icon indicating copy to clipboard operation
babel-plugin-angularjs-annotate copied to clipboard

codeFrame is not a function

Open kirannuclear opened this issue 5 years ago • 0 comments

I'm getting this error when I build using webpack.

ERROR in ./controllers/_config.js Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: codeFrame is not a function at isAnnotatedArray (C:\xampp\htdocs\Mininfy app\apartment-management-system\ApartmentManagementSystemUI\node_modules\babel-plugin-angularjs-annotate\nginject.js:401:23) at Object.inspectFunction (C:\xampp\htdocs\Mininfy app\apartment-management-system\ApartmentManagementSystemUI\node_modules\babel-plugin-angularjs-annotate\nginject.js:104:9) at PluginPass.enter (C:\xampp\htdocs\Mininfy app\apartment-management-system\ApartmentManagementSystemUI\node_modules\babel-plugin-angularjs-annotate\babel-ng-annotate.js:103:20)

webpack config:

` module: { rules : [ { test : /controllers.*.js$/, use : [

      {
        loader : 'babel-loader',
        query: {
          plugins: ['angularjs-annotate'],
          presets: ['@babel/preset-env']
      }
      }
    ]
  },
  {
    test : /src.*\.tpl\.html$/,
    use  : [
      {
        loader : 'raw-loader'
      }
    ]
  }
],

},`

kirannuclear avatar Jun 10 '19 08:06 kirannuclear