std-curves icon indicating copy to clipboard operation
std-curves copied to clipboard

Bump and fix dependencies

Open J08nY opened this issue 2 years ago • 2 comments

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 avatar Dec 07 '22 15:12 J08nY

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

J08nY avatar Mar 29 '23 12:03 J08nY

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.

mavaddat avatar Oct 14 '23 03:10 mavaddat