-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken by recent commit to babel? #2
Comments
@jbcpollak are you using NPM 2, or 3? |
Npm 3!
|
Yeah I think this is an issue with |
Hi, I m facing the same issue "TypeError: Falsy value found in plugins", any updates for it..? |
@akhilshastri I have some work locally to fix this, but it's not working yet. |
Anyone having this issue, please try installing |
Has this been addressed? I am having the same issue. |
@crostonj Have you tried 2.0.1 ( |
I installed it before I posted this question and I still get the error. Do I have configure it somehow? I am trying to use it with webpack and get the error when I try to compile the bundle. |
There isn't really configuration, no. Can you paste your call to |
I guess that is the trick, I am not sure how to integrate it into the webpack.config to build the bundle. Here is my current config: var path = require('path'); var schema = require('./src/data/schema.json').data;
this is the error I get when I run webpack:
|
Typically this module is used to create a babel preset that is derived from another babel preset. If you're using it inline, I believe you should be able to do something like this in your import modifyBabelPreset from 'modify-babel-preset';
module.exports = {
// .. in your babel configuration parameters:
module: {
loaders: [
{
test: /\.jsx?/,
exclude: /node_modules/
loader: 'babel',
query: {
plugins: modifyBabelPreset('es2015', {
// example: reconfigure jsx transform:
'transform-react-jsx': { pragma: 'h' }
}).plugins
}
},
// ..etc
]
}
}; |
Continuing on this today:
and I get the following error:
|
Plugins has to be a flat Array - try this: var path = require('path');
var webpack = require('webpack');
var modifyBabelPreset = require('modify-babel-preset');
var schema = require('./src/data/schema.json').data;
var babelRelayPlugin = require('babel-relay-plugin');
module.exports = {
entry: "./src/main.js",
output: {
path: __dirname + "/public",
filename: "bundle.js"
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['react', 'es2015', 'stage-0'],
plugins: [].concat(
modifyBabelPreset('es2015').plugins,
[
babelRelayPlugin(schema)
]
)
}
}]
}
}; |
Closing this since I'm fairly certain it's an issue that arises when plugins that do not exist are referenced. Please re-open if this is still an issue for you! |
Hi. I have the same problem with
Error
|
@neformal13 hmm - can you post how you're invoking |
FYI: I found this error also occurs if you have an EMPTY Would be nice if babel could handle this condition :) |
Is it just me or does this commit break this library?
https://github.com/babel/babel/pull/3303/files
now I get something like this:
The text was updated successfully, but these errors were encountered: