Coder Social home page Coder Social logo

Comments (5)

rylnd avatar rylnd commented on June 2, 2024

@agamemnus sorry for the late response; holidays and all that.

We've mainly been using this with babel and using import so we hadn't noticed the issue! It looks like what you're experiencing is described here.

Instead of modifying the source code, you should also be able to use:

var middleware = require('adorable-avatars').default;

Could you verify that when you have a moment?

I"m going to leave this open until we've fixed the issue; I believe something as simple as https://www.npmjs.com/package/babel-plugin-add-module-exports should do the trick.

from avatars-api-middleware.

agamemnus avatar agamemnus commented on June 2, 2024

I tried that and it didn't work, I think. I ended up just using your server code wholesale (maybe with a couple minor adjustments, like port number). Thank you for sharing this avatar generator!

from avatars-api-middleware.

agamemnus avatar agamemnus commented on June 2, 2024

But if I have time I will try it again.

from avatars-api-middleware.

rylnd avatar rylnd commented on June 2, 2024

@agamemnus sure thing; I was playing with it in runkit and found that to be the case: https://runkit.com/rylnd/5c378920bc4c1d0013310b67

from avatars-api-middleware.

rylnd avatar rylnd commented on June 2, 2024

@agamemnus as you probably saw, 0.2.2 was just released. The intention is that it should address this problem; please reopen the issue if it does not.

from avatars-api-middleware.

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.