Code Monkey home page Code Monkey logo

Comments (10)

futurelucas4502 avatar futurelucas4502 commented on May 8, 2024 2

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
image

from opine.

futurelucas4502 avatar futurelucas4502 commented on May 8, 2024 2

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.

asos-craigmorten avatar asos-craigmorten commented on May 8, 2024 1

That’s awesome to hear! 🍾 please raise further issues if find anything else isn’t quite right πŸ˜„

from opine.

asos-craigmorten avatar asos-craigmorten commented on May 8, 2024

@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.

asos-craigmorten avatar asos-craigmorten commented on May 8, 2024

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

Screen Shot 2020-08-17 at 16 05 56

Screen Shot 2020-08-17 at 16 06 02

from opine.

futurelucas4502 avatar futurelucas4502 commented on May 8, 2024

@asos-craigmorten
I attempted using both the cloned repo and using the reload function the cloned repo is the screenshot below:
image

Using reload on my code is this screenshot:
image

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:
image

from opine.

asos-craigmorten avatar asos-craigmorten commented on May 8, 2024

@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.

asos-craigmorten avatar asos-craigmorten commented on May 8, 2024

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.

asos-craigmorten avatar asos-craigmorten commented on May 8, 2024

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.

asos-craigmorten avatar asos-craigmorten commented on May 8, 2024

@futurelucas4502 can you confirm whether [email protected] resolves the issue?

from opine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.