b1a9id / gatsby-starter-lumen

https://www.b1a9idps.com
MIT License
0 stars 0 forks source link

ライブラリのバージョンアップ #239

Closed b1a9id closed 2 years ago

b1a9id commented 2 years ago

Gatsby 2 -> 3

https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/

b1a9id commented 2 years ago

package.json

{
  "dependecies": {
        "gatsby": "^3.0.0"
    }
}
$ yarn install
yarn install v1.22.10
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error gatsby@3.14.6: The engine "node" is incompatible with this module. Expected version ">=12.13.0". Got "10.20.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

nodeのバージョンで怒られた

b1a9id commented 2 years ago
 nodenv local 14.17.5
b1a9id commented 2 years ago
% yarn outdated
yarn outdated v1.22.10
info Color legend :
 "<red>"    : Major Update backward-incompatible updates
 "<yellow>" : Minor Update backward-compatible features
 "<green>"  : Patch Update backward-compatible bug fixes
Package                                  Current Wanted  Latest  Package Type    URL
@babel/core                              7.12.10 7.16.5  7.16.5  devDependencies https://babel.dev/docs/en/next/babel-core
@babel/plugin-proposal-class-properties  7.12.1  7.16.5  7.16.5  devDependencies https://babel.dev/docs/en/next/babel-plugin-proposal-class-properties
@babel/plugin-proposal-optional-chaining 7.12.7  7.16.5  7.16.5  devDependencies https://babel.dev/docs/en/next/babel-plugin-proposal-optional-chaining
@babel/preset-env                        7.12.11 7.16.5  7.16.5  devDependencies https://babel.dev/docs/en/next/babel-preset-env
@babel/preset-react                      7.12.10 7.16.5  7.16.5  devDependencies https://babel.dev/docs/en/next/babel-preset-react
autoprefixer                             9.8.6   9.8.8   10.4.0  devDependencies https://github.com/postcss/autoprefixer#readme
babel-jest                               26.6.3  26.6.3  27.4.5  devDependencies https://github.com/facebook/jest#readme
browserslist                             4.16.1  4.19.1  4.19.1  devDependencies https://github.com/browserslist/browserslist#readme
classnames                               2.2.6   2.3.1   2.3.1   dependencies    https://github.com/JedWatson/classnames#readme
codecov                                  3.8.1   3.8.3   3.8.3   dependencies    https://github.com/codecov/codecov-node
concurrently                             5.3.0   5.3.0   6.5.1   devDependencies https://github.com/open-cli-tools/concurrently#readme
eslint                                   7.18.0  7.32.0  8.5.0   devDependencies https://eslint.org
eslint-config-airbnb-base                14.2.1  14.2.1  15.0.0  devDependencies https://github.com/airbnb/javascript
eslint-plugin-import                     2.22.1  2.25.3  2.25.3  devDependencies https://github.com/import-js/eslint-plugin-import
eslint-plugin-jest                       24.1.3  24.7.0  25.3.0  devDependencies https://github.com/jest-community/eslint-plugin-jest#readme
eslint-plugin-jsx-a11y                   6.4.1   6.5.1   6.5.1   devDependencies https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#readme
eslint-plugin-react                      7.22.0  7.28.0  7.28.0  devDependencies https://github.com/yannickcr/eslint-plugin-react
eslint-watch                             7.0.0   7.0.0   8.0.0   devDependencies https://github.com/rizowski/eslint-watch
gatsby                                   3.14.6  3.14.6  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby#readme
gatsby-link                              2.10.0  2.11.0  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-link#readme
gatsby-plugin-catch-links                2.9.0   2.10.0  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-catch-links#readme
gatsby-plugin-feed                       2.12.0  2.13.1  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-feed#readme
gatsby-plugin-google-analytics           2.10.0  2.11.0  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-google-analytics#readme
gatsby-plugin-manifest                   2.11.0  2.12.1  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-manifest#readme
gatsby-plugin-netlify                    2.10.0  2.11.1  3.14.0  dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify#readme
gatsby-plugin-netlify-cms                4.9.0   4.10.1  6.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-netlify-cms#readme
gatsby-plugin-offline                    3.9.0   3.10.2  5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-offline#readme
gatsby-plugin-react-helmet               3.9.0   3.10.0  5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-helmet#readme
gatsby-plugin-sass                       3.1.0   3.2.0   5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sass#readme
gatsby-plugin-sharp                      2.13.1  2.14.4  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sharp#readme
gatsby-plugin-sitemap                    2.11.0  2.12.0  5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-sitemap#readme
gatsby-plugin-twitter                    2.9.0   2.10.0  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-twitter#readme
gatsby-remark-copy-linked-files          2.9.0   2.10.0  5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-copy-linked-files#readme
gatsby-remark-images                     3.10.0  3.11.1  6.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-images#readme
gatsby-remark-prismjs                    3.12.0  3.13.0  6.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-prismjs#readme
gatsby-remark-relative-images            0.3.0   0.3.0   2.0.2   dependencies    https://github.com/danielmahon/gatsby-remark-relative-images#readme
gatsby-remark-responsive-iframe          2.10.0  2.11.0  5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-responsive-iframe#readme
gatsby-remark-smartypants                2.9.0   2.10.0  5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-smartypants#readme
gatsby-source-filesystem                 2.10.0  2.11.1  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-filesystem#readme
gatsby-transformer-remark                2.15.0  2.16.1  5.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-remark#readme
gatsby-transformer-sharp                 2.11.0  2.12.1  4.4.0   dependencies    https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-sharp#readme
gh-pages                                 3.1.0   3.2.3   3.2.3   devDependencies https://github.com/tschaub/gh-pages
jest                                     26.6.3  26.6.3  27.4.5  devDependencies https://jestjs.io/
jest-cli                                 26.6.3  26.6.3  27.4.5  devDependencies https://jestjs.io/
katex                                    0.12.0  0.12.0  0.15.1  dependencies    https://katex.org
lodash                                   4.17.20 4.17.21 4.17.21 dependencies    https://lodash.com/
netlify-cms-app                          2.14.14 2.15.62 2.15.62 dependencies    https://www.netlifycms.org
node-sass                                5.0.0   5.0.0   7.0.0   dependencies    https://github.com/sass/node-sass
postcss-pxtorem                          5.1.1   5.1.1   6.0.0   devDependencies https://github.com/cuth/postcss-pxtorem#readme
prismjs                                  1.23.0  1.25.0  1.25.0  dependencies    https://github.com/PrismJS/prism#readme
react                                    17.0.1  17.0.2  17.0.2  dependencies    https://reactjs.org/
react-dom                                17.0.1  17.0.2  17.0.2  dependencies    https://reactjs.org/
react-share                              4.3.1   4.4.0   4.4.0   dependencies    https://github.com/nygardk/react-share#readme
react-test-renderer                      17.0.1  17.0.2  17.0.2  devDependencies https://reactjs.org/
sharp                                    0.27.0  0.27.2  0.29.3  dependencies    https://github.com/lovell/sharp
stylelint                                13.9.0  13.13.1 14.2.0  devDependencies https://stylelint.io
stylelint-config-recommended-scss        4.2.0   4.3.0   5.0.2   devDependencies https://github.com/stylelint-scss/stylelint-config-recommended-scss#readme
stylelint-scss                           3.18.0  3.21.0  4.1.0   devDependencies https://github.com/stylelint-scss/stylelint-scss#readme
✨  Done in 5.76s.
b1a9id commented 2 years ago

https://classic.yarnpkg.com/lang/en/docs/cli/upgrade-interactive/ yarn upgrade-interactive --latest超便利

b1a9id commented 2 years ago

辛いから諦める。notionnいでも移行しよう