How to upgrade to v1.0.x from 0.19.x?

default discord avatar
hunghvu
last year
1 2

Congrats on the v1.0 release! I have a question regarding the update procedure.

I have a fresh local install of v0.19.1 for testing purposes. My guess is a simple npm install is not enough to perform an update. I did look at the changelog but found no instruction. How can I perform an update?

Here is a log of when I ran npm install.


PS C:\Users\test\Documents\github\cms-trial\payload-app> npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: mini-create-react-context@0.4.1
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN   react@"^18.0.0" from payload@0.19.1
npm WARN   node_modules/payload
npm WARN     payload@"^0.19.1" from the root project     
npm WARN   19 more (react-animate-height, react-onclickoutside, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" from mini-create-react-context@0.4.1
npm WARN node_modules/mini-create-react-context
npm WARN   mini-create-react-context@"^0.4.0" from react-router@5.3.3
npm WARN   node_modules/react-router
npm WARN
npm WARN Conflicting peer dependency: react@17.0.2
npm WARN node_modules/react
npm WARN   peer react@"^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" from mini-create-react-context@0.4.1
npm WARN   node_modules/mini-create-react-context
npm WARN     mini-create-react-context@"^0.4.0" from react-router@5.3.3
npm WARN     node_modules/react-router
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-diff-viewer@3.1.1
npm WARN Found: react@18.2.0
npm WARN node_modules/payload/node_modules/react
npm WARN   react@"^18.0.0" from payload@0.19.1
npm WARN   node_modules/payload
npm WARN     payload@"^0.19.1" from the root project
npm WARN   1 more (react-dom)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer react@"^15.3.0 || ^16.0.0" from react-diff-viewer@3.1.1
npm WARN node_modules/payload/node_modules/react-diff-viewer
npm WARN   react-diff-viewer@"^3.1.1" from payload@0.19.1
npm WARN   node_modules/payload
npm WARN
npm WARN Conflicting peer dependency: react@16.14.0
npm WARN node_modules/react
npm WARN   peer react@"^15.3.0 || ^16.0.0" from react-diff-viewer@3.1.1
npm WARN   node_modules/payload/node_modules/react-diff-viewer
npm WARN     react-diff-viewer@"^3.1.1" from payload@0.19.1
npm WARN     node_modules/payload
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-diff-viewer@3.1.1
npm WARN Found: react-dom@18.2.0
npm WARN node_modules/payload/node_modules/react-dom
npm WARN   react-dom@"^18.0.0" from payload@0.19.1
npm WARN   node_modules/payload
npm WARN     payload@"^0.19.1" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-dom@"^15.3.0 || ^16.0.0" from react-diff-viewer@3.1.1
npm WARN node_modules/payload/node_modules/react-diff-viewer
npm WARN   react-diff-viewer@"^3.1.1" from payload@0.19.1
npm WARN   node_modules/payload
npm WARN
npm WARN Conflicting peer dependency: react-dom@16.14.0
npm WARN node_modules/react-dom
npm WARN   peer react-dom@"^15.3.0 || ^16.0.0" from react-diff-viewer@3.1.1
npm WARN   node_modules/payload/node_modules/react-diff-viewer
npm WARN     react-diff-viewer@"^3.1.1" from payload@0.19.1
npm WARN     node_modules/payload
npm WARN skipping integrity check for git dependency ssh://git@github.com/bcherny/json-schema-ref-parser.git

added 10 packages, removed 8 packages, changed 89 packages, and audited 1338 packages in 3m

171 packages are looking for funding
  run `npm fund` for details

6 vulnerabilities (2 moderate, 4 high)

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

  • default discord avatar
    wojciechkrol
    last year

    Change payload version to ^1.0.7 in your package.json and run yarn install

  • default discord avatar
    torunai
    last year

    You could try running yarn upgrade-interactive --latest. It will ask you which packages you want to update to the latest version. Worked perfectly on my end.

Open the post
Continue the discussion in GitHub
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.