Giter VIP home page Giter VIP logo

Comments (3)

denyncrawford avatar denyncrawford commented on May 29, 2024

Hi @michailVestnik, I ask you to include the steps to reproduce and please specify what version of deno you are using, please.

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

image

deno run -A index.js

image

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.

  1. 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 use await 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.

 avatar commented on May 29, 2024

Hi!
I use latest deno 1.6.1

  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

  2. If we look at this line we'll see this:
    https://user-images.githubusercontent.com/75129392/102579347-aca26100-413f-11eb-9dc3-1ccf48bb0b41.jpg

  3. I delete this 8 constants and everithing is work fine!
    I don't understand why my bundle is going like this...

from dndb.

denyncrawford avatar denyncrawford commented on May 29, 2024

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)

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.