Comments (10)
So after doing some more research it works completely fine on both Linux and MacOS therefore this seems to be an OS specific issue that only occurs on windows @asos-craigmorten
from opine.
hi @asos-craigmorten thanks for all your work I can confirm [email protected] fixes the problem and opine now works on windows properly!
from opine.
Thatβs awesome to hear! πΎ please raise further issues if find anything else isnβt quite right π
from opine.
@futurelucas4502 can you try and confirm you still have an issue after using a --reload
flag, e.g.
deno run --allow-net --allow-env --allow-read=./ --reload ./entrypoint.ts
If that fails, can you also see if you have an issue running with the following repo: https://github.com/asos-craigmorten/opine-template. This should be the repository created when following the tutorial.
Let me know how get on?
Edit: Just seen you've posted a repo for reproduction - will give that a go and see if happens for me π€
Slightly lost atm as I can't reproduce, but someone else has also had this issue now... This is my setup:
$ deno --version
deno 1.3.0
v8 8.6.334
typescript 3.9.7
on MacOS Mojave (10.14.6), so it could be OS related, but hard to be sure just yet!
from opine.
Pulled down your repo and it runs ok for me (once realised the default port was 80
not 3000
π ). Steps:
mkdir -p ~/git/futurelucas4502
cd ~/git/futurelucas4502
git clone [email protected]:futurelucas4502/Opine-dejs.git
deno run --allow-net --allow-env --allow-read=./ --reload ./entrypoint.ts
from opine.
@asos-craigmorten
I attempted using both the cloned repo and using the reload function the cloned repo is the screenshot below:
Using reload on my code is this screenshot:
It is certainly an interesting issue because the stylesheets load correctly but we still get an error about the request also if i purposely make a 404 error the page completely loads with details about the 404 error:
from opine.
@futurelucas4502 great work confirming! I suspect there may be some path manipulation logic that needs fixing somewhere, that is generally the cause of cross-OS issues
from opine.
Closed automatically with the linked PR #59
@futurelucas4502 can you confirm whether [email protected]
resolves the issue or whether I've just fixed something unrelated π re-reading here I think it might be the latter... π
from opine.
Ok, I'm able to reproduce under different means on MacOS using the static-files
example and navigating to http://localhost:3000/js
which invokes the redirect directory listener and then errors with the same message as you have been seeing - will give fixing that a whirl and π€ it also solves your issue!
from opine.
@futurelucas4502 can you confirm whether [email protected]
resolves the issue?
from opine.
Related Issues (20)
- Calling req.body.read() in a post or put method crashes deno HOT 2
- Incompatible with Deno 1.14.0 HOT 4
- Dependency error, no exported member default for several dependencies HOT 1
- Cross-Platform Path Separatores in serveStatic HOT 1
- TS2305 ERROR in deps.ts with range-parser default export HOT 2
- Bug on deno std, or opine ??? HOT 4
- Outdated dependencies
- Some (but not all) static files fail to be served - ERR_CONTENT_LENGTH_MISMATCH HOT 11
- Getting a plain Deno Request object from an OpineRequest? HOT 8
- JSON middleware does not work on Deno Deploy HOT 1
- How to read a request received from a html form? HOT 2
- FormData parser middleware is missing HOT 1
- Deno.Buffer will be deprecated in Deno 2.0 HOT 1
- Type incompatibility with Deno 1.20.1 HOT 5
- Opine can't find template views on Deno Deploy HOT 3
- [QUESTION] how to send ReadableStream<Uint8Array>? HOT 2
- Requested module doesn't provide required data HOT 1
- How to upload file?? HOT 1
- Request protocol for WebSocket upgrade request is always http HOT 2
- server-sent-events with opine HOT 1
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 opine.