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

[Bug]: Command yarn rw data-migrate up fails after v7 upgrade #10276

Open
1 task
cannikin opened this issue Mar 22, 2024 · 0 comments
Open
1 task

[Bug]: Command yarn rw data-migrate up fails after v7 upgrade #10276

cannikin opened this issue Mar 22, 2024 · 0 comments
Labels
bug/confirmed We have confirmed this is a bug topic/cli

Comments

@cannikin
Copy link
Member

cannikin commented Mar 22, 2024

What's not working?

(Originally found because I was deploying on Netlify, but I think the actual error is not deploy-related at all.)

If you have a Redwood app <7 and upgrade to >= v7, the yarn rw data-migrate up command fails:

...snip...
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 449ms
➤ YN0000: ┌ Link step
➤ YN0008: │ msw@npm:1.3.2 [36b9f] must be rebuilt because its dependency tree changed
➤ YN0008: │ fsevents@patch:fsevents@npm%3A1.2.13#optional!builtin<compat/fsevents>::version=1.2.13&hash=d11327 must be rebuilt because its dependency tree changed
➤ YN0008: │ cbor-extract@npm:2.2.0 must be rebuilt because its dependency tree changed
➤ YN0000: └ Completed in 2s 210ms
➤ YN0000: · Done with warnings in 2s 946ms
-------------------------------------------------------------------------------------------------------------------------------
Error: ENOENT: no such file or directory, open '/Users/rob/Sites/128collective.org/node_modules/semver/semver.js'
    at Object.readFileSync (node:fs:453:20)
    at Module._extensions..js (node:internal/modules/cjs/loader:1397:18)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at _semver (/Users/rob/Sites/128collective.org/node_modules/@babel/core/lib/config/files/module-types.js:24:16)
    at Object.<anonymous> (/Users/rob/Sites/128collective.org/node_modules/@babel/core/lib/config/files/module-types.js:48:43)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)

As part of the command a new package @redwoodjs/cli-data-migrate is added to the root package.json and blows up during the yarn install part of the process.

Running the same command again, after a manual yarn install, was successful.

How do we reproduce the bug?

  1. Create a new Redwood v6.6.x app.
  2. yarn rw upgrade
  3. yarn rw data-migrate up

What's your environment? (If it applies)

No response

Are you interested in working on this?

  • I'm interested in working on this
@cannikin cannikin added bug/confirmed We have confirmed this is a bug topic/cli labels Mar 22, 2024
@cannikin cannikin changed the title [Bug]: Upgrading Redwood from v6 -> v7 fails to build on Netlify [Bug]: Upgrading Redwood from v6 -> v7 fails running yarn rw data-migrate up Mar 22, 2024
@cannikin cannikin changed the title [Bug]: Upgrading Redwood from v6 -> v7 fails running yarn rw data-migrate up [Bug]: Command yarn rw data-migrate up fails after v7 upgrade Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed We have confirmed this is a bug topic/cli
Projects
None yet
Development

No branches or pull requests

1 participant