Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Babel 7 "SyntaxError: Unexpected token import" in lerna environment #7208
We use lerna to seperate concernes into multiple packages. One of them is depending on two others to combine them in the final build. For production we build them independently and then put the dependencies into the
I am out of ideas right now. I expect this to work because babel itself is a monorepo with lerna and
We plan to refactor one of our packages with typescript. For this purpose we need to figure out how the development environment can work with one package on typescript and the other packages still on babel. And the best idea until now is to keep babel everywhere and move to babel 7 with the typescript preset. This does work for all packages running independently and in the build, but not when I try to run the one package that
Hey @Raigen! We really appreciate you taking the time to report an issue. The collaborators
First of all, thank you for the fast answer!
I tweaked around with
Or maybe the reporter just follows linked files, that I do not know. But someone is following here.
I could not ignore it from the
What actually worked was
When I just ignore
Obviously there is a
I could not really figure out where babel 7 looks for my packages, so I do not really know how to most efficently
In the end technically the question is answered, thanks to the help I figured out a pattern that works for me
I might even be able to use
But I do not really understand the way this workes, what bothers me. I do not like to use parameters that I can not understand. This always leads to errors and then you have to ask again.
Also I can not get this working with
I´m having the same problem. My Lerna packages are the same except that all my code resides inside a
In my case Lerna is using yarn:
I´m using firstname.lastname@example.org
Any ideas on how to solve it ?
I'm having this issue as well. No issue if I put the config into my
I have a workaround for webpack, but I can't find a workaround for running Electron without
Register works fine on Windows 7 x64, but not at all on Linux Mint 17.3 x64. All versions are at
Any ideas on a fix or workaround would be greatly appreciated.