question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Canary release publishing is not setting correct canary version on @redwoodjs dependencies

See original GitHub issue

Canary releases are successfully being published for all packages. However, some @redwoodjs packages are not being installed at the canary release version. Instead, they are at the current stable release 0.19.2.

Reproducing the Issue

  • run yarn rw upgrade -t canary in a Redwood project
  • inspecting package.json in each of the main installed packages (e.g. node_modules/@redwoodjs for core, api, auth, forms, router, and web) shows the correct canary version for the package as well as for each @redwoodjs dependency
  • however, the package.json shows v0.19.2 for the installed packages cli, dev-server, eslint-config,eslint-plugin-redwood, internal, structure, testing

Diagnosis

yarn.lock is showing some funky versions.

@redwoodjs/core is correct:

"@redwoodjs/core@^0.19.2-canary.45":
  version "0.19.2-canary.45"
...

@redwoodjs/cli includes the +hash, which means semver resolves to 0.19.2:

"@redwoodjs/cli@^0.19.2-canary.45+f354b564":
  version "0.19.2"

It’s most likely this started after I released the .2 patch. Which means it might resolve once v0.20.0 is released.

Workaround

For now, the workaround is manually installing the packages at the correct canary version. So after running yarn rw upgrade -t canary to upgrade to 0.19.2-canary.45, for example, you’d then need to run:

yarn add -W @redwoodjs/cli@0.19.2-canary.45 @redwoodjs/dev-server@0.19.2-canary.45  @redwoodjs/eslint-config@0.19.2-canary.45 @redwoodjs/eslint-plugin-redwood@0.19.2-canary.45  @redwoodjs/internal@0.19.2-canary.45  @redwoodjs/structure@0.19.2-canary.45  @redwoodjs/testing@0.19.2-canary.45 

Yeah, I know… 🤢

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
AntonioMeirelescommented, Oct 9, 2020

fwiw, afaict, alternatively placing snippet bellow inside top level’s package.json will do the trick for now …

  "resolutions": {
    "@redwoodjs/cli": "0.19.2-canary.52",
    "@redwoodjs/web": "0.19.2-canary.52",
    "@redwoodjs/dev-server": "0.19.2-canary.52",
    "@redwoodjs/eslint-config": "0.19.2-canary.52",
    "@redwoodjs/eslint-plugin-redwood": "0.19.2-canary.52",
    "@redwoodjs/internal": "0.19.2-canary.52",
    "@redwoodjs/structure": "0.19.2-canary.52",
    "@redwoodjs/testing": "0.19.2-canary.52"
  }
0reactions
thedavidpricecommented, Jan 21, 2021

turns out the sha is supposed to be included here, but npm strips it out

^^ Ah, very interesting!

We did resolve this back in October. But good to know as there are still occasional hiccups.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contributing Walkthrough | RedwoodJS Docs
However, the Redwood Project you created for testing is currently using the latest version (or canary) packages of Redwood published on NPMjs.com, ...
Read more >
Redwood v1.0.0-rc.6 is now available - RedwoodJS Community
This release adds preview support for using Yarn v3 with Redwood projects (See #4444). ... npx @redwoodjs/codemods@canary upgrade-yarn.
Read more >
Production database is not building - RedwoodJS Community
I'm working on my deployment on netlify, so far I had to fix a couple of ... @redwoodjs/testing@0.12.1-canary.10" has unmet peer dependency ......
Read more >
Installation & Starting Development | RedwoodJS Docs
This is unreleased documentation for RedwoodJS Docs Canary version. For up-to-date documentation, see the latest version (3.4).
Read more >
Setup for Contributing - RedwoodJS Community
Hi! I'm trying to get Redwood running locally so I can start contributing - but the following happens: The right tab is the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found