Open 565ee opened 2 years ago
This happens when you have a new version of NodeJS using webpack 4. The simple solution is to downgrade node to LTS, which will depend on your setup. Installing nvm
and running nvm install --lts
is an option. Another option is to use the package manager of your distro. Finally, you can also run the entire repo in a docker (or podman) container that has an older version of NodeJS.
Assuming the above does not help you and you just want to hack yourself into a dirty solution, you will need to first enable legacy openssl algorithms at OS level, in /etc/ssl/openssl.cnf
:
[provider_sect]
default = default_sect
legacy = legacy_sect
[default_sect]
activate = 1
[legacy_sect]
activate = 1
This is obviously not safe so a permanent fix is preferred. Anyway, moving forward, you should now be able to run:
$ export NODE_OPTIONS='--openssl-legacy-provider';
$ yarn start
This will allow react to start with the legacy openssl provider.
nvm node nodejs : 16.14.0
i think @565ee may have chosen v16.14.0 because the CircleCI file uses it here
i instead used lts/gallium
(i.e. Node.js 16.18.0), which is mentioned in the .nvmrc file and got it working in a docker container by following the steps I mentioned here to use the appropriate version of Yarn 3 https://github.com/substrate-developer-hub/substrate-front-end-template/issues/259#issuecomment-1345657616.
Finally, you can also run the entire repo in a docker (or podman) container that has an older version of NodeJS
This repo seems a bit stale with old PRs that haven't been merged for a while likely due to other priorities, but I can create a PR with the docker files I use for developing this repo in a development environment with hot reloading (I used node:gallium-alpine
) and deploying to production with nginx if given the go-ahead by someone willing to review and if the community is interested? (@shawntabrizi @NukeManDan @jimmychu0807)
OS : centos stream 9 Rust : 1.61 substrate : 2022-05 3.0 polkdadot : 0.9.20 substrate-front-end : 2022-02 nvm node nodejs : 16.14.0
success : Start the local Substrate node
when i Start the front-end template yarn start , it show error