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
@babel/plugin-proposal-object-rest-spread not being detected at beta.46 #7879
Comments
Hey @karlas! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Can you try to rename |
More specifically, where is your |
Yes, it's outside the directory where |
@karlas Yeah, the assumption now is that |
Ok! Will try. Thanks! |
Mmm i can´t get it work. What i made:
module.exports = {
"presets": [
["@babel/env", {
"targets": { "node": "6.11.5" }
}]
],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
} Am I doing something wrong? |
Just for clarification: are we no longer able to use
|
Ok I finally could fix it, by adding
Note i had to add the |
@karlas I think @loganfsmyth was saying by default babel looks for a |
thanks @nicolo-ribaudo |
oh... why |
2 hours wasted pulling my hair out with this one. This should probably be in big bold letters at the head of the repo 🤣 It's going to trip a lot of people up. Renaming to |
Same for me, it was a lot of pain for me to upgrade babel version and make everything work. {
"devDependencies": {
"@babel/cli": "^7.1.0",
"@babel/core": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-async-to-generator": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"babel-loader": "^8.0.2"
}
} |
Babel/Babylon Configuration (.babelrc, package.json, cli command)
.babelrc
CLI Command
babel 'functions/src' --out-dir 'functions/bundle' --copy-files --ignore 'functions/src/node_modules'
Expected Behavior
Files are correctly built, as it did with beta.44
Current Behavior
With beta.46, following error arises:
Possible Solution
Can't help...
Context
Just transpiling about 20 files to be used on Firebase Functions
Your Environment
The text was updated successfully, but these errors were encountered: