Comments (9)
Honestly, I'm not sure. It doesn't seem that far-fetched to me that a browser would refuse a connection if it suspects some certificate tomfoolery going on (as unfortunately local HTTPS necessitates). I don't really know enough about that.
Interesting also that (at least for the Firefox setup) brew is used, which means it should be installed (one cannot rely on that) and it's broken on my M1 CPU, so I cannot use it anyway.
Indeed! Additionally, one of the reasons I'm not a fan of devcert
is that it assumes Linux == Debian, which, er, is not an ideal assumption. I had to do a lot of patching originally to get it working on an Arch-based system: #252 (comment)
from wmr.
Actually, I can remove certs using the keychain app. Just need to know which one, to avoid making the situation even worse :-)
Many thanks for trying to help here. Much appreciated! Yes, I tried preact-cli but found it too heavy. We want to have a really light-weight setup, doing all configuration ourselves etc. so I decided to start from scratch. But I am not yet set on a specific build tool. I'll try what you recommended!
from wmr.
Linux brain, I immediately jump to editing some config file or running the command in reverse :-)
AFAIK we don't set any name or anything, just ask it to create a cert for the hostname. Any chance you just have the one for localhost?
wmr/packages/wmr/src/lib/http2.js
Line 6 in 729ed8a
from wmr.
Possibly a duplicate of #252?
which asked me for a password (without explaining why's that needed)
WMR uses devcert
to try to help set up HTTPS as it's usually a pain to do correctly & manually. This means creating a CA and registering it with your OS.
While I have my, opinions, about this process and using devcert
, that's what it's doing. I'm guessing there's now a half-baked cert registered with your CA that's causing issues, but not positive. Asking on their tracker might get you better help.
I'm currently evaluating wmr to switch over our current React application
I should warn, WMR hasn't seen any (real) development in well over a year now. I (amongst others) do still use it, but it has a fair number of rough edges and can sometimes require some "maintainer's knowledge" to wield optimally. Just want to make that clear.
It can still be viable, but bug fixes are unlikely to happen.
from wmr.
That's great information @rschristian! Should help us to evaluate the right tool to use.
I found that other issue when I searched for "http2" and also tried installing "devcert", but to no avail.
Now I wonder how to get back my system to the state before trying http2. I would like to avoid restoring the system from Time Machine.
from wmr.
Apologies, I'm not a Mac user so can't give great instructions, but this seems to be what devcert
is doing:
I'm wondering (hoping) it's as easy as just running a "remove-trusted-cert" or if it's a file you can directly edit if needs be to get that localhost cert gone that's causing you issues.
Re: Build tools, Vite, Astro, and Fresh are all excellent and support Preact (Fresh being a Preact-specific framework). I know you've tested out preact-cli
earlier this week and directly because of that I'm pushing to remove it as a recommended tool. Apologies for our tooling being a bit of a mess at the moment, we're figuring some things out.
from wmr.
I cleaned up a bit but still get the error. However, I wonder how a certificate can influence the http connection? Isn't that only used for https?
Interesting also that (at least for the Firefox setup) brew
is used, which means it should be installed (one cannot rely on that) and it's broken on my M1 CPU, so I cannot use it anyway.
from wmr.
@mike-lischke any chance you've tried restarting Chrome? This could be HSTS pinning - either restart Chrome, or go to chrome://net-internals/#hsts
and enter localhost
into the "Delete domain security policies" section at the bottom.
As for DevCert, last time I used it was before the M1's arrived. We may also be on an old version?
from wmr.
@developit Unfortunately this didn't help.
In the meantime I jumped over to Vite and found this a great combination with Preact. So I think we can close this issue.
Thank you guys!
from wmr.
Related Issues (20)
- Prerender: HTML textContent of <script type="wmrdata"> is not escaped HOT 1
- Prerender: regexp capturing group replaces any instance of $1 (etc.) HOT 2
- Failed to load wmr.config.ts HOT 4
- unclear for workbox-recipes, htmlMinifier with create-wmr HOT 7
- Typescript is not compiled HOT 7
- npm registry lookup failed for "@npm/object-assign": Package doesn't exist. HOT 3
- JSX.Element don't have children prop. HOT 3
- The requested module '/@npm/scheduler' does not provide an export named 'unstable_NormalPriority' HOT 2
- rollup version is too old (is fake) HOT 23
- @mdx-js/rollup plugin doesn't work in development mode
- Not all NPM packages work out of the box HOT 2
- "Invalid Specifier" due to "+" character (build metadata) in semver
- Router: Easier access to route() in class components HOT 5
- Build fails when changing the `root` config option in `wmr.config.js`
- preact-iso useLocation missing hash HOT 2
- Eslint preact fails with an error related to jest HOT 1
- Suspense combined with the directory plugin preventing component mounting on page load. HOT 5
- Router segment wildcards don't match when no segment is provided HOT 1
- Move wmr.cjs to wmr.js (esm) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wmr.