Closed Metroninja closed 6 years ago
Found some deeper issues, will reopen once fixed.
So I initially attempted to update moment and moment-range to the latest versions but this broke the library as there appears to be some deprecated code in later versions. I didn't have time to validate all of the changes so I rolled back and this is a fully working version featuring what I set out to do - get this working for codebases using latest versions of babel/react/webpack
Hey @Metroninja, thanks for the PR! I will check this out as soon as I can, test it, and then release it. Look for an update in the next few days.
@Metroninja having trouble getting your branch up and running. I'm getting this error:
Error: Cannot find module 'babel-plugin-react-transform'
. I thought it was because @babel/plugin-transform-react-jsx
wasn't added to .babel_rc
but that didn't fix it. I'll spent some more time on it soon, but any input is appreciated.
@dubert - sorry for the delay today, had a lot on my plate. Is your error running npm run-script build
or is it attempting to use my branch in a project to test it out? if you are using this branch, the root project MUST be babel 7 ready. I know I can build without issue on my local box (just did) so I'm assuming you are attempting to use my branch and running into issues. Again, my PR is meant for people using projects with react/webpack latest AND babel 7 together, the key being Babel 7 for the main project.
If you are having issues simply building on my PR let me know, I'll try greenfielding my branch again if that's the case.
Updated, using a modified version of your branch.
Our team was using this library in a babel 7 project and ran into webpack bundling issue on node 8. I forked the repo and got it building by upgrading relevant files to the latest webpack/react16/babel 7 beta.40 but still had integration issues with lodash. The final fix that got everything working again was to move lodash as a peer dependency.
Following changes were made
This will likely break anything pre babel 7, so this release should be tagged as babel 7+. This should save you the trouble of having to upgrade everything and verify it once babel 7 is widely released. In the meant time people using babel 7 can use my fork. Having this PR visible should make it easier for people with said issues to find.