-
Notifications
You must be signed in to change notification settings - Fork 254
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
localhost refused to connect. #942
Comments
I just saw this in a similar issue that seemed to help get the environment running. #910 (comment) |
Thanks for the advice @saminightshift . I changed the version Node from 18.12.1 to 16.8 and it worked but got another error and only the header is displayed. terminal error: |
Hi @torkamanmahdi, As mentioned Frontity only supports up to node 16 at present so downgrade is the simplest option. After making changes you probably want to delete these files/directories:
Then run If issues persist try running RE: Error: error:0308010C:digital envelope routines::unsupported Node 17+ uses OpenSSL 3. Currently there's a legacy flag workaround if you want to try with node 18 however you may hit other issues as Frontity hasn't been upgraded to the latest Nodejs versions.
|
tahnks for the help @primitiveshaun . |
Hi @torkamanmahdi I'd like to know if you've solved the issue you mentioned in your last message. I'm trying to create an application with Frontity and I'm having a problem where only the header appears on the website. |
Unfortunately, this problem did not work for me in several other ways that I tested. I think that frontity can no longer be used |
Hello @torkamanmahdi, unfortunately it's a shame, but I was browsing the internet and found this website https://michaelsoriano.com/wordpress-theme-react-part-1-setup/. I used my experience trying to use Frontity, and it worked very well with the same version of Node.js. I recommend that you try using this tool! |
Hi @ThiagoSGomes-Dev, thanks for the sharing. you can see this project too https://github.com/JEverhart383/crash-course-headless-wp-next-wpgraphql . |
Hi, I used to work with Frontity, and if you want to use Wp + React there are alternatives, like the Wordpress plugin ReactPress, wich allows to run a React app in a WP pages. I used it for my works in several projects and it works great. Also there is Faust Js, made by Wp Engine, witch is kinda like Frontity |
I can agree with @FrancoisSoler - Faust is probably the best framework for headless Wordpress. I've used it for a few client projects now, the new release it lightening fast as well. |
Hello,
I installed frontity according to the documentation [ https://docs.frontity.org/getting-started ], but after running frontity without any edition [npx frontity dev] I received the following error.
NPM version: 9.2.0
Node Version: 18.12.1
Browser Error:
This site can’t be reachedlocalhost refused to connect.
Console Error:
SERVER STARTED -- Listening @ http://localhost:3000
(node:1450) Warning: Closing file descriptor 28 on garbage collection
(Use
node --trace-warnings ...
to show where the warning was created)(node:1450) [DEP0137] DeprecationWarning: Closing a FileHandle object on garbage collection is deprecated. Please close FileHandle objects explicitly using FileHandle.prototype.close(). In the future, an error will be thrown if a file descriptor is closed during garbage collection.
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (/Users/user/Desktop/mtcom/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/Users/user/Desktop/mtcom/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/Users/user/Desktop/mtcom/node_modules/webpack/lib/NormalModule.js:471:10)
at /Users/user/Desktop/mtcom/node_modules/webpack/lib/NormalModule.js:503:5
at /Users/user/Desktop/mtcom/node_modules/webpack/lib/NormalModule.js:358:12
at /Users/user/Desktop/mtcom/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/Users/user/Desktop/mtcom/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/Users/user/Desktop/mtcom/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
The text was updated successfully, but these errors were encountered: