Comments (5)
@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.
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.
But if I have time I will try it again.
from avatars-api-middleware.
@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.
@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)
- Identifier can result in a 404 HOT 2
- Library can't be installed HOT 5
- Difference between generated and result of link on the website HOT 1
- API Site is gone? HOT 17
- NestJS: requires a middleware function but got a undefined HOT 4
- Default branch does not reflect what's deployed HOT 1
- Make the repository name more descriptive. HOT 3
- Let's work together HOT 8
- Discussion: a better routing schema HOT 8
- Size parameter in URL does not work HOT 3
- CORS from github? HOT 3
- URL's not working all of a sudden, service seems to be down. HOT 3
- Discussion : Laravel Installation or Use HOT 1
- Empty response from server HOT 8
- Can I use in mobile application? HOT 2
- Remove outdated/confusing server code
- Replace babel-watch due to slow security fixes HOT 1
- Replace imagemagick HOT 1
- extensions affect the returned avatar HOT 1
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 avatars-api-middleware.