Git Product home page Git Product logo

deno_exif's People

Contributors

furrywolfx avatar haprog avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

deno_exif's Issues

Doesn't work when imported via HTTP or HTTPS URL

Currently deno_exif doesn't seem to work when trying to import it from an HTTP(S) URL like so:

import { create } from 'https://deno.land/x/[email protected]/mod.ts';

If trying to use it with the above import I always get the following error:

image

Expand this to see the error as plain text
error: Uncaught (in promise) InvalidData: invalid url scheme
    throw new Deno.errors.InvalidData("invalid url scheme");
          ^
    at fileURLToPath (https://deno.land/[email protected]/node/url.ts:53:11)
    at createRequire (https://deno.land/[email protected]/node/module.ts:533:18)
    at https://deno.land/x/[email protected]/mod.ts:4:17

However if I clone the repository for example under a lib/ dir in my project I can import it like this and it works without errors:

import { create } from './lib/deno_exif/mod.ts';

Using a file:// URL also seems to work fine:

import { create } from 'file:///home/haprog/repos/cli-scripts/lib/deno_exif/mod.ts';

I also tested running a local HTTP server and importing from there with:

import { create } from 'http://127.0.0.1:8081/mod.ts';

But that also resulted in the same error above.

So for some reason this only seems to work when importing from local file system path but not when importing via HTTP or HTTPS.

Tested with deno 1.23.3.

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.