Task: Currently working on setting up a basic blog using Gatsby
Results:
- Expected Result: Following the tutorial guide as expected
- Actual Result: Encountering Dependency tree error at certain steps & also receiving a warning message stating
whenever using npm to install something in this project34 vulnerabilities (11 moderate, 23 high)
Approach: Referencing the guide provided here, and facing the error mentioned in Task to install MDX transformer plugin
Inquiries:
- How to tackle this specific dependency tree problem and how to address similar issues with npm in general?
- Regarding the warnings related to vulnerable packages - How serious are they and how should they be managed?
Command-used: npm install gatsby-plugin-mdx @mdx-js/mdx@v1 @mdx-js/react@v1
Output/Console Error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! (Full error message details available in the provided links)
Updates:
Update 1:
After attempting a recommendation from a fellow Stack Overflow user, encountered a new error! Ignoring the dependency tree issue with 'skip legacy tree' is not effective. Any further suggestions from Gatsby users?
gatsby develop
ERROR #11901 COMPILATION
Failed to compile Gatsby files (Error):
Could not resolve module "@parcel/namer-default" from
"<home-folder>/codeSpace/siteByGatsby/sv3/my-gatsby-site/node\_modules/@gatsbyjs/parcel-namer-relative-to-cwd/lib/index.js".
not finished compile gatsby files - 0.778s