Monday 12 June 2017

_babelCore.OptionManager is not a constructor

I have just updated 'react-router' to 4.0.0 in my project and when I try to run my application I am now getting the error

_babelCore.OptionManager is not a constructor

I have tried searching but cannot seem to find the cause of this issue.

It seems as though the issue is found when I'm using babel-register...

require('babel-register')({
    babelrc: false,
    presets: [
        "node6",
        "react",
        'stage-0'
    ]
});
require('./server');

Has anyone had this issue or can shed some light on what's causing the problem?

Any help is much appreciated.



via Phil

No comments:

Post a Comment