2021+2022 Technology Sitecore Most Valuable Professional |
Interested in frontend dev, TypeScript, React, GraphQL, C#, architecture, and tooling. | Van Moof Discount Code? https://fanvanmoof.com
Hi Craig, thank for looking into the issue. Would be great if it could be fixed. I wrote a solution for server-side rect rendering with async calls for data a few years a go based on Hypernova that is used in production on anwbcamping.nl and available in github.com/macaw-interactive/react... (latest version available in the features/serveroute branch). This morning we were discussing the possibility to create a version based on react-suspence, running in an Azure function based on Deno, and then I found your work! So looking forward to investigate possibilities and try to adapt it to our use-case!
Heya, so think I've got something working again and have updated the article and the Opine React SSR example.
The Deno types directive didn't seem to play nicely with the denopkg.com proxy so in the end directly referencing the types via the GitHub raw URL did the trick.
Give pulling the latest down and let me know how get on! π
2021+2022 Technology Sitecore Most Valuable Professional |
Interested in frontend dev, TypeScript, React, GraphQL, C#, architecture, and tooling. | Van Moof Discount Code? https://fanvanmoof.com
Application starts up, but on localhost:3000 I get the following error:
TypeError: Cannot read property 'req' of undefined
at redirect (serveStatic.ts:220:39)
at serveStatic (serveStatic.ts:124:14)
at async Layer.handle as handle_request
Oh dear, sounds similar to github.com/asos-craigmorten/opine/... which has cropped up for someone else today :/ havenβt been able to reproduce just yet so not sure what is causing it!
2021+2022 Technology Sitecore Most Valuable Professional |
Interested in frontend dev, TypeScript, React, GraphQL, C#, architecture, and tooling. | Van Moof Discount Code? https://fanvanmoof.com
Hey Serge, can you try with the --reload flag to see if it's a cached issue that has been resolved? Opine 0.21.0 has just been released for Deno 1.3.0 so might be good to check with that as well π
2021+2022 Technology Sitecore Most Valuable Professional |
Interested in frontend dev, TypeScript, React, GraphQL, C#, architecture, and tooling. | Van Moof Discount Code? https://fanvanmoof.com
I run from the cloned version of the Opine...is that version 0.21.0? The --reload flag didn't work. Can you reproduce the issue? Or does it work on your side? What version of Deno are you running? 1.3.0 as well?
2021+2022 Technology Sitecore Most Valuable Professional |
Interested in frontend dev, TypeScript, React, GraphQL, C#, architecture, and tooling. | Van Moof Discount Code? https://fanvanmoof.com
We've managed to confirm that this is definitely an issue with Opine that arises for Windows only users π€¦
I think I might have solved it in opine@0.21.2 (see github.com/asos-craigmorten/opine/...) but it would be super awesome if you (or anyone!) can confirm whether it is working as expected? π
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Craig, thank for looking into the issue. Would be great if it could be fixed. I wrote a solution for server-side rect rendering with async calls for data a few years a go based on Hypernova that is used in production on anwbcamping.nl and available in github.com/macaw-interactive/react... (latest version available in the features/serveroute branch). This morning we were discussing the possibility to create a version based on react-suspence, running in an Azure function based on Deno, and then I found your work! So looking forward to investigate possibilities and try to adapt it to our use-case!
Heya, so think I've got something working again and have updated the article and the Opine React SSR example.
The Deno types directive didn't seem to play nicely with the
denopkg.com
proxy so in the end directly referencing the types via the GitHub raw URL did the trick.Give pulling the latest down and let me know how get on! π
Application starts up, but on localhost:3000 I get the following error:
TypeError: Cannot read property 'req' of undefined
at redirect (serveStatic.ts:220:39)
at serveStatic (serveStatic.ts:124:14)
at async Layer.handle as handle_request
Oh dear, sounds similar to github.com/asos-craigmorten/opine/... which has cropped up for someone else today :/ havenβt been able to reproduce just yet so not sure what is causing it!
That looks very similar;-)
Hey Serge, can you try with the
--reload
flag to see if it's a cached issue that has been resolved? Opine0.21.0
has just been released for Deno 1.3.0 so might be good to check with that as well πI run from the cloned version of the Opine...is that version 0.21.0? The --reload flag didn't work. Can you reproduce the issue? Or does it work on your side? What version of Deno are you running? 1.3.0 as well?
Unfortunately Iβm still unable to reproduce - I am on Deno 1.3.0, see in github.com/asos-craigmorten/opine/...
Can you confirm whether you are using windows? Wondering if is an OS based issue
Yes I'm running on Windows 64 bit version 1909... I will ask a colleague tomorrow to try it out as well...
Cool, will get a VM booted up and see if itβs a windows issue π
We've managed to confirm that this is definitely an issue with Opine that arises for Windows only users π€¦
I think I might have solved it in
opine@0.21.2
(see github.com/asos-craigmorten/opine/...) but it would be super awesome if you (or anyone!) can confirm whether it is working as expected? π