Comments (3)
Hi @michailVestnik, I ask you to include the steps to reproduce and please specify what version of deno you are using, please.
- I'm testing right now and I can't see anything wrong doing a bundle:
deno bundle --unstable https://deno.land/x/[email protected]/mod.ts dendb.js
deno run -A index.js
I also checked the bundle and I don't see anything like __default8
, so I can imagine that if you didn't get any error messages bundling without the --unstable
flag, then you are using an outdated version of deno (maybe). Check that please.
- You're right on the README example
await remove({ _id: 'id2' })
is a documentation typo. I'll fix it later, but thanks for noticing. By now you can useawait db.remove({ _id: 'id2' })
. If you want to destructure your datastore you can do:const { remove } = db;
I'll let this open for now, if you think that something is still wrong, please tell me.
from dndb.
Hi!
I use latest deno 1.6.1
-
I made bundle "deno bundle --unstable https://deno.land/x/[email protected]/mod.ts dendb.js" and see this error
screenshot: https://user-images.githubusercontent.com/75129392/102579246-72d15a80-413f-11eb-9a17-599a0be59d66.jpg -
If we look at this line we'll see this:
https://user-images.githubusercontent.com/75129392/102579347-aca26100-413f-11eb-9dc3-1ccf48bb0b41.jpg -
I delete this 8 constants and everithing is work fine!
I don't understand why my bundle is going like this...
from dndb.
That's weird, but I confirm that bundling with 1.6.1 adds these constants to the bundle, and wasn't doing it in 1.5.x, so I can assume the problem is in Deno's bundler itself. If you want to bundle smoothly, do it against 1.5.x or remove these lines, maybe I can open an issue later about this.
I'm closing this issue and tagging it as a good first issue, thanks.
from dndb.
Related Issues (13)
- Thoughts on typed data? HOT 2
- type errors with any's HOT 2
- JSON.parse error on big json HOT 2
- incorrectly handled async functions
- Cannot load multiples instance if db files needs to be created
- How does this compare to AloeDB? HOT 1
- dndb HANDLE 5m data HOT 1
- Module not found "https://deno.land/std/io/bufio.ts" HOT 6
- Crash app with DNDB high load! HOT 9
- Permission denied! HOT 1
- any plans for aggregation? HOT 1
- Forced to add callback HOT 2
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 dndb.