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

Upgrade Gatsby and MUI #218

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tanisha-agarwal
Copy link

Fixes: #102

Signed-off-by: Tanisha Agarwal [email protected]

@netlify
Copy link

netlify bot commented Aug 23, 2022

Deploy Preview for docs-px-dev failed.

Name Link
🔨 Latest commit 85b53dd
🔍 Latest deploy log https://app.netlify.com/sites/docs-px-dev/deploys/633cb0bd503369000828dd6e

Copy link
Member

@NickLanam NickLanam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me, but there's a dependency conflict on npm/yarn install that needs to be resolved or the preview won't build. Once that works I'll look at this again!

Comment on lines -6 to -7
redirect_from:
- /tutorials/pxl-scripts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this?

Copy link
Author

@tanisha-agarwal tanisha-agarwal Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Added npmrc file to resolve dependency conflicts on npm install.
  2. was getting error:
    There are routes that match both page and redirect. Pages take precedence over redirects so the redirect
    will not work:
  • page: "/tutorials/pxl-scripts/" and redirect: "/tutorials/pxl-scripts" ->
    "/tutorials/pxl-scripts/write-pxl-scripts"

Found 2 ways to solve this either remove redirect_from or to change it redirect_from: /tutorials/write-pxl-scripts

Copy link
Member

@NickLanam NickLanam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still not building, but for a very easily fixed reason: this project normally uses Yarn, not NPM, but the PR has switched it. Removing node_modules and package-lock.json, then running yarn install (NOT npm install) made it work again locally for me. I don't think .npmrc is needed either for this reason.

Signed-off-by: Tanisha Agarwal <[email protected]>
@tanisha-agarwal tanisha-agarwal requested review from NickLanam and removed request for aimichelle September 1, 2022 08:58
package.json Outdated
Comment on lines 81 to 114
"react": "^17.0.1",
"react-body-classname": "^1.3.1",
"react-dom": "^17.0.2",
"react-emotion": "^10.0.0",
"react-helmet": "^6.1.0",
"react-helmet": "^5.2.1",
"react-live": "^2.2.3",
"react-markdown": "^8.0.3",
"react-scrollspy": "^3.4.3",
"remark-containers": "^1.2.0",
"sass": "^1.54.4",
"slugify": "^1.6.5",
"slugify": "^1.3.6",
"styled-components": "^5.3.0",
"typescript": "^4.7.4",
"unist-util-visit": "^2.0.3"
},
"devDependencies": {
"@types/node": "^18.7.2",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/react-helmet": "^5.0.15",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "^8.21.0",
"@types/js-cookie": "^3.0.1",
"@types/mdx-js__react": "^1.5.5",
"@types/node": "^17.0.21",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.13",
"@types/react-helmet": "^6.1.5",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"eslint": "^7.16.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.7.1"
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"prettier": "^1.17.1",
"typescript": "^4.6.2"
Copy link
Member

@NickLanam NickLanam Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems most of these are package downgrades - including a point release of TypeScript and a patch release of React. Even a major version of Prettier. I understand the rest of the package downgrades, but why these three?

EDIT: I was looking at the commit relative to its predecessor, I see now this is putting them back to how they are in the base branch. Sorry about that!

Copy link
Author

@tanisha-agarwal tanisha-agarwal Sep 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NickLanam @htroisi Upgraded some package back to latest version as were in first commit

@@ -1285,7 +1285,7 @@
"def": {
"name": "class Client",
"declaration": "Client(self, token: str, server_url: str = 'work.withpixie.ai', use_encryption: bool = False, channel_fn: Callable[[str], grpc.Channel] = None, conn_channel_fn: Callable[[str], grpc.aio._base_channel.Channel] = None )",
"docstring": "Client is the main entry point to the Pixie API.\n\nTo setup the client, you need to generate an API token\nand pass it in as the first argument.\nSee: https://docs.px.dev/using-pixie/api-quick-start/\nfor more info."
"docstring": "Client is the main entry point to the Pixie API.\n\nTo setup the client, you need to generate an API token\nand pass it in as the first argument.\nSee: [https://docs.px.dev/using-pixie/api-quick-start/](https://docs.px.dev/using-pixie/api-quick-start/)\nfor more info."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is produced automatically from code in the main pixie repo. We'll need to upstream any changes to this file there & also make sure that this works with the other docs repo.

Signed-off-by: Tanisha Agarwal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade gatsby to v4
3 participants