Closed thebuilder closed 8 years ago
From the stack trace and the error it looks like your /Development/project/node_modules/babel-core/
is 5.x, hence the error. Do you have babel 6 installed locally for the project?
By default, wallaby.js is using local project babel version, which looks like it's v5.x in your case. If you'd like to use a different version, you may need to pass the version with the setting: babel: require(...)
:
compilers: {
'**/*.{js,jsx}': wallaby.compilers.babel({
...
babel: require(...) // path to the desired babel version
})
},
Hey Artem, that was the issue - thanks!
I hadn't actually saved babel-core
in package.json, so after running npm dedupe
it was using babel-core 5 because of babel-eslint
.
Installing babel-core fixed it.
Awesome, thanks for the update!
For some reason i'm suddenly seeing this error whenever i run Wallaby. Running the tests with Karma works fine, and compiling the .js also works fine.
My babel file currently looks like:
And .babelrc has the following presets:
"presets": ["es2015", "stage-0", "react"]
I have also tried to edit the compile method in wallaby.js so it doesn't use the .babelrc, but the error message remains.