-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Version 6.0: Unexpected token '.' #3368
Comments
Hi @dep sorry that you've run into an issue. I'm a bit confused when you say any other command also fails (including Could you please clarify what commands fail and whether or not the error message is always the same? |
I had to roll back in order to get the
Even after rolling back lerna versions. Still digging |
This is just very strange because we maintain a monorepo where each build kicks off the same action within different applications. In the following screenshots, you can see two feature branch pull requests. Neither of them modify the application code, so these actions are ostensibly running against mainline code. One app is failing in one branch, but passing in other, and vice versa. Here's an example: Feature 1Feature 2I'm just absolutely perplexed. |
Why would some of these jobs pass while others fail? They all run the same |
Bit of an update, and this is weird, but it seems forcing an |
Hi @dep , thank your for reporting the issue. I was able to reproduce the issue described. I believe it is related to your node version of 12.22.7. After upgrading to node 14+, the issue disappeared for me. Lerna officially supports Node versions 14 or 16+. Please consider upgrading to one of these and trying again. |
I have had this happen as well.
For me, the problem is not occurring on Node 10 or 14, just Node 12. Perhaps a V8 issue? |
@BurtHarris node 12 has not been supported since v5 of lerna, and it’s also end of life in general. Please use a supported version of node |
Hi Folks, I'm going to go ahead and close this given that it seems to have been fully explained by using an unsupported version of node. Many thanks! |
@fahslaj I saw this today after upgrading to Node 16. It seems to be coming from the
Outputs:
|
@JamesHenry Can you please re-open this ticket to investigate further? I have multiple users experiencing the same issue in Node 16.16.0.
it's fixed by the following:
Info:
Something's up though. |
Hi @dep, I'm afraid this does seem to be something very specific with your setup. If the token were fundamentally failing to be parsed on our stated supported node versions (regardless or whether Lerna or Nx related), we would be inundated with commenters/issues. Perhaps I believe you are the only one who is in a position to investigate further, as noone else has access to your specific setup. If you are able to create a fresh reproduction repo then we will of course help troubleshoot. Feel free to open a new issue in that case. As an aside, I would strongly encourage you to move away from using |
Apologies, we had some lingering users on Node 12. confirmed after updating to Node 16 that their problems disappeared. Sorry for the false alarm @JamesHenry |
Happy to hear that @dep, thanks! |
@JamesHenry I'm happy to move away from |
@dep please check out the notes on #3410 but in general the point is that whichever your package manager of choice is, it already supports the ability to link local packages together via their support of "workspaces". E.g. for npm the docs are here: https://docs.npmjs.com/cli/v8/using-npm/workspaces As we work through towards Lerna v7 we will produce content on our own site to offer more prescriptive guidance around specific |
@JamesHenry Nice! Thank you 🚀 |
Current Behavior
npx lerna bootstrap --scope=@box/foo-bar --include-dependencies --concurrency 2
Crashes with the following error:
Any other lerna command also fails (
npx lerna info
,lerna repair
, etc).Expected Behavior
Bootstraps the application.
Steps to Reproduce
Install Lerna 6.0.0,
npm install
Run
npx lerna bootstrap --scope=@box/foo-bar --include-dependencies --concurrency 2
Failure Logs / Configuration
Lerna log is empty.
Environment
Downgrading to
5.5.4
immediately fixes this issue.The text was updated successfully, but these errors were encountered: