Comments (5)
@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 :)
from deno-nessie.
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.
@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.
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.
@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)
- [IDEA] Nessie Docker image HOT 2
- [IDEA]: Status command
- [IDEA]: Add sponsor notices
- [IDEA]: Consider removing the latest and next tag from docker image HOT 1
- [IDEA]: Add support for custom seed and migration template HOT 3
- [Bug]: Using nessie with import maps HOT 3
- [IDEA]: Restrict permissions in README HOT 3
- [IDEA]: Add foundation when creating a seed or migration and remove raw imports HOT 5
- [IDEA]: Use a deps file for imports in config HOT 4
- [Bug]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. HOT 2
- [Bug]: NessieConfig not found HOT 3
- [IDEA]: Mariadb example HOT 2
- [Bug]: Seed database HOT 1
- [IDEA]: Add support for cockroachdb HOT 3
- [Bug]: mysql dependency breaks after new deno_std release 0.160.1 HOT 3
- [Docs]: Remove jsdoc comment about `exposeQueryBuilder` HOT 1
- [Bug]: hash no longer in 1.27.0 of deo HOT 3
- Future of Nessie HOT 2
- [Bug]: god crypto error HOT 3
- [Bug]: TypeError: Module not found "https://deno.land/std/hash/mod.ts". HOT 8
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 deno-nessie.