std-curves
std-curves copied to clipboard
Bump and fix dependencies
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).

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.
Somehow a return to the original dependencies + one fix worked and the site builds. Never again.
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.