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
Compiled with Syntax error - Invalid regular expression #5564
Comments
Hey @MatusSkerlik! 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 |
I think you'll need to narrow this down a bit, there isn't nearly enough information to go on. What code is failing? Do you have a sense for what the error is? What makes you say this is a Babel issue? The link to your repo also doesn't work. |
Sorry for that link, it works now. |
I'm happy to help if this is a Babel issue, but it would be great if you could narrow it down. That file is 2MB. What regex is broken? What does it look like in the original source? What change happened to make it break, at least from what you can tell? |
it is on 12 line, it is loadash.js 1.8.3 section of code i think, please go to http://esprima.org/demo/validate.html and copy contents of bundle.js in it so you can see. When i fix this line another syntax error will show up on line 37, modernizr.js section, and it continues for ever. And only regex i use is in /app/components/ReserveGrid.js, but i tried to comment it, but with same results after compilation. Im sure that error is not in my code, but probably in configuration of webpack or babel ? I don't know really. |
Line 12 is 90000 characters long. Please include the working vs failing regexes here so we can compare. |
This lines don't work. |
If you remove the |
Yes, it works now. Thank you so much, you have saved my ass 👍 |
Babili is still beta-level, so it's certainly possible there is some bug you are hitting here. |
Thank you again, i would not use it if i knew it. It took my so much time. |
@MatusSkerlik looks like some bug with Babili in regexp. Might be the same as babel/minify#440. Can you try with Babili Option - new BabiliPlugin({
regexpConstructors: false
}) in your webpack config. |
For me, the package Chrono-Node 1.3.1 and 1.2.5 both cause this error. Adding |
Ditto; this is an issue that |
When i run project in "developing" mode everything works as it should.
npm run dev
But when i bundle code into Electron and run application, i am getting error in /app/dist/bundle.js
npm run package
Syntax error: Invalid regular expression: missing /
my repository rep
Compilation of source code is made by babel-pollyfill
OSX 10.12.3, node v6.9.2, npm 4.2.0
The text was updated successfully, but these errors were encountered: