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

Bump and fix dependencies #19

Open
J08nY opened this issue Dec 7, 2022 · 2 comments
Open

Bump and fix dependencies #19

J08nY opened this issue Dec 7, 2022 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@J08nY
Copy link
Owner

J08nY commented Dec 7, 2022

Since JavaScript dependency management is straight from hell this page has some outdated dependencies. When I tried to bump them to something reasonable I encountered the most ridiculous amount of errors (see below).

Screenshot from 2022-12-07 16-00-59

Even after somewhat fixing those, the Gatsby site still won't build. It keeps failing on some webpack issues with:

ERROR #98124  WEBPACK.BUILD-JAVASCRIPT

Generating JavaScript bundles failed

Can't resolve 'react-dom/client' in 'std-curves/.cache'

If you're trying to use a package make sure that 'react-dom/client' is installed. If you're trying to use a local file make sure that the path is correct.

File: .cache/react-dom-utils.js:1:77


 ERROR #98123  WEBPACK.BUILD-JAVASCRIPT

Generating JavaScript bundles failed

std-curves/src/footer.mdx: Unexpected character '©'. (1:1)

> 1 |  © 2020 [Jan Jancar](https://neuromancer.sk) | Built with [Dox theme](https://github.com/MunifTanjim/gatsby-theme-dox) for 
[Gatsby](https://www.gatsbyjs.org)
    |  ^
  2 |

File: src/footer.mdx:1:1


 ERROR #98123  WEBPACK.BUILD-JAVASCRIPT

Generating JavaScript bundles failed

std-curves/src/sidebar.mdx: Unterminated regular expression. (1:12)

> 1 | - [Curves](/)
    |             ^
  2 |   - [ANSI X9.62](/x962/)
  3 |   - [ANSI X9.63](/x963/)
  4 |   - [ANSSI](/anssi/)

File: src/sidebar.mdx:1:12

I give up trying to do this. JavaScript is cursed. Never again.

@J08nY J08nY added bug Something isn't working help wanted Extra attention is needed labels Dec 7, 2022
@J08nY
Copy link
Owner Author

J08nY commented Mar 29, 2023

Somehow a return to the original dependencies + one fix worked and the site builds. Never again.

@mavaddat
Copy link

I am going to try brazenly upgrading all the npm packages to their respective latest versions and see if I can get it to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants