-
Notifications
You must be signed in to change notification settings - Fork 68
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
Issue when using yarn #100
Comments
May be you could have a look at this article: https://spectrum.chat/mdx/general/resolved-problems-updating-to-mdx-v2-w-yarn-workspaces~126eddd4-942f-4e8b-9064-de45e8b4a4d9 and I'm currently using yarn |
@LocTran016 did you figure this out? Looks like the site is running? https://loctran016.github.io |
No I have not fixed this yet (don't know how to use yarn resolution). The page is working because the build used to |
Would you mind helping me with this? Thanks (giving me the mdx version for me to put it in the resolutions in |
@LocTran016 Looks like someone else had the same issue. Can you take a look at the following: https://spectrum.chat/mdx/general/resolved-problems-updating-to-mdx-v2-w-yarn-workspaces~126eddd4-942f-4e8b-9064-de45e8b4a4d9? |
Oh yeah, I have already read that post, tried to add to the package.json like this: {
"name": "fpr",
"version": "0.8.1",
"license": "MIT",
"scripts": {
"build": "gatsby build",
"start": "gatsby develop --open",
"serve": "gatsby serve",
"clean": "gatsby clean",
"dev": "gatsby clean && gatsby develop --open",
"preview": "gatsby clean && gatsby build && gatsby serve",
"up": "yarn upgrade --latest"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-brands-svg-icons": "^5.15.1",
"@fortawesome/free-regular-svg-icons": "^5.15.1",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@fortawesome/react-fontawesome": "^0.1.11",
"@reflexjs/gatsby-plugin-metatags": "^0.2.7",
"@reflexjs/gatsby-theme-base": "^0.3.10",
"@reflexjs/gatsby-theme-post": "^0.6.7",
"@reflexjs/gatsby-theme-video": "^0.4.8",
"disqus-react": "^1.0.10",
"gatsby": "^2.22.11",
"gatsby-plugin-fontawesome-css": "^1.0.0",
"gatsby-plugin-manifest": "^2.4.35",
"gatsby-plugin-offline": "^3.2.33",
"gatsby-plugin-sitemap": "^2.4.17",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"typeface-inter": "^1.1.13",
"typeface-open-sans": "^1.1.13",
"typeface-prata": "^1.1.13"
},
"devDependencies": {
"run-script-os": "^1.1.1"
},
"resolutions": {
"gatsby-plugin-mdx":"^1.2.15"
}
} but didn't help. I don't know if I had put a wrong version in mdx (I mean the version of mdx installed in the theme) |
What happens if you remove gatsby-plugin-mdx from your package.json? Reflex will already pull this in as a dependency. |
I used to do that, the build failed so I follow the guide above, the problem look similar and the writer told that to fix this you can use yarn resolutions |
It started being failed from this commit: https://github.com/LocTran016/loctran016.github.io/commit/d5263acaa210b4d07831aa001f2bfb5b2a853094 and I have add mdx in resolutions here https://github.com/LocTran016/loctran016.github.io/commit/e758c79c6073343d04f5462a868735480e9dad97 but didn't help at all. |
And btw, this also happen locally (on my computer), when I run yarn dev ( P/S: When I use yarn (locally/on Travis), it usually report errors and failed (sometimes the build is success with yarn) but when I use npm (on GitHub Action), there isn't any issue (always work). Can you help me with this? |
Hi there. This is my repo. Can you help me with this? I don't know why it keep reporting this issue and make the build failed (although when I run yarn build on my computer, there isn't any problem) and this happen randomly (sometimes the build failed and sometimes it success, you can check that via build history). Thanks
The text was updated successfully, but these errors were encountered: