Skip to content
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

Webpack production build yields "Invalid Regex" error with Webpack2 #899

Closed
Nantris opened this issue Apr 5, 2017 · 3 comments
Closed

Comments

@Nantris
Copy link
Contributor

Nantris commented Apr 5, 2017

I have tried using transform-regexp-constructors and setting it to true and to false. No difference either way.

This doesn't occur in development. Any idea what if any change to webpack or .babelrc would be necessary to restore this functionality? It worked in the Webpack 1 setup.

Thanks for reading and for any advice!

Uncaught SyntaxError: Invalid regular expression: /(\\W|^)(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:on\\s*?)?(?:(this|last|next)\\s*)?(sunday|sun|monday|mon|tuesday|tues|tue|wednesday|wed|thursday|thurs|thur|thu|friday|fri|saturday|sat)(?:\s*(?:\,|\)|\)))?(?:\s*(this|last|next)\s*week)?(?=\W|$)/: Unterminated group
    at new RegExp (<anonymous>)
    at Object../node_modules/chrono-node/src/parsers/EN/ENWeekdayParser.js (ENWeekdayParser.js:12)
    at U (bootstrap 9726358…:19)
    at Object../node_modules/chrono-node/src/parsers/parser.js (parser.js:63)
    at U (bootstrap 9726358…:19)
    at Object../node_modules/chrono-node/src/options.js (options.js:1)
    at U (bootstrap 9726358…:19)
    at Object../node_modules/chrono-node/src/chrono.js (chrono.js:2)
    at U (bootstrap 9726358…:19)
    at Object../app/utils/rclReminder.js (rclReminder.js:2)
@Nantris
Copy link
Contributor Author

Nantris commented Apr 5, 2017

It's a known issue it looks like: babel/babel#5564

@Nantris
Copy link
Contributor Author

Nantris commented Apr 5, 2017

It looks like the original reporter of the issue was also using the boilerplate from what I can tell: https://github.com/MatusSkerlik/Prezior

@Nantris
Copy link
Contributor Author

Nantris commented Apr 5, 2017

Closed as duplicate of #861

@Nantris Nantris closed this as completed Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant