You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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?
Create a new Redwood v6.6.x app.
yarn rw upgrade
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
The text was updated successfully, but these errors were encountered:
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 upMar 22, 2024
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
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:As part of the command a new package
@redwoodjs/cli-data-migrate
is added to the rootpackage.json
and blows up during theyarn install
part of the process.Running the same command again, after a manual
yarn install
, was successful.How do we reproduce the bug?
yarn rw upgrade
yarn rw data-migrate up
What's your environment? (If it applies)
No response
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: