Giter VIP home page Giter VIP logo

Comments (5)

halvardssm avatar halvardssm commented on September 27, 2024 2

@fvilante So I managed to figure out the issue. Deno is kind of new to me still so it takes a bit of trial and error to make sure everything works perfectly.

The issue you were facing was because I was using import maps instead of using a dependencies file. It should now all be fixed in the latest release v0.3.3. If you try it out, you should be able to run the test now.

So to answer your question: Yes, the point of Deno is that you can run modules directly from a url. The security aspect is coming from the flags that you have to enable for the script to work, which makes you think twice before allowing something unknown running on your system.

I hope this gave you some clarity into Deno :)

#9 #10 #11

from deno-nessie.

halvardssm avatar halvardssm commented on September 27, 2024 1

Hi! That might be because I introuced import maps in v0.3.0 3 hours ago. I am actually considering to switch it over to using the deps import, i have a feeling it broke something with using the import maps. As Deno still has around two weeks until v1.0 I think there will be more changes introduced.

I'll post an update soon 👍

from deno-nessie.

halvardssm avatar halvardssm commented on September 27, 2024 1

@fvilante Actually, that was not a mistake from your part, but a problem with import maps. If you run it again but reload the cache, it should work for you.
deno test --reload https://raw.githubusercontent.com/halvardssm/deno-nessie/master/tests/column.test.ts

The error you were getting was complaining about the import of the file, since i was importing it with import {...} from 'std/testing/asserts.ts' instead of the whole url.

Have you considered joining the discord group for Deno? you can find the link on their website :)

from deno-nessie.

fvilante avatar fvilante commented on September 27, 2024 1

Wow. The --reload thing solved all problems I was experiencing.

Note: I've subscribed to Deno channel on discord.

Thank you a lot fpr your support!

from deno-nessie.

fvilante avatar fvilante commented on September 27, 2024

@halvardssm I found the mistake I have made. Just for your acknowledge here it is:

I was typing line (1) below and getting an error (E). When I typed line (2) below the test runned and passed.

(1) deno test https://raw.githubusercontent.com/halvardssm/deno-nessie/master/tests/column.test.ts
(E) error: Uncaught URIError: relative import path "std/testing/asserts.ts" not prefixed with / or ./ or ../ Imported from "https://raw.githubusercontent.com/halvardssm/deno-nessie/master/tests/column.test.ts"
(2) deno test https://raw.githubusercontent.com/halvardssm/deno-nessie/master/src/Column.ts

I'm feeding you back because you should consider that "import maps" maybe not be related to the original issue. The fact is that I was using the command line inappropriately. Newcomer's thing :)

Thank you!

from deno-nessie.

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.