Comments (9)
Hi @dnohr
I'm uploaded new fixed and better documented version at here
from middlewares.
If new middlewares static
fixes your issue, please close issue
from middlewares.
No answers, issue was fixed in my env, so i can close the Issue
from middlewares.
@dnohr Please comment here
from middlewares.
Hi @dalisoft ,
Sorry for the late reply. I just reinstalled the libraries now to verify it, and with a fresh install, I'm still getting the same or similar issue.
Tested with the following code:
const nanoexpress = require('nanoexpress-pro/cjs');
const staticServe = require('nanoexpress-pro/cjs/static');
const app = nanoexpress();
app.use(staticServe(__dirname + '/public'));
app.get('/', (req, res) => { return res.send({ status: 'ok' }); });
app.listen(6006);
Try to put two different images in "public/" and a different one in "public/img", but with the same name. Seems like there can only be one static file with the same name.
Thanks.
from middlewares.
I checked this bug already and lot of times, but itβs fixed for me.
Can you please create minimal reproducible repo for test?
Thanks
from middlewares.
I'm not sure how to do it fast, but I tested on macOS with just "nanoexpress-pro" installed and two photos in the static folder + in another folder. Thanks!
from middlewares.
Now documentation page related to static-serve
was removed as documentation lives on this repository for each package
from middlewares.
I sure you are trying to make it work with older package. Please check again
from middlewares.
Related Issues (15)
- The requested module '@nanoexpress/*' does not provide an export named 'default' HOT 9
- file-upload middleware HOT 3
- Static serve middleware is not working HOT 3
- @nanoexpress/middleware-file-upload not found on NPM HOT 2
- module not found formidable middleware HOT 6
- @nanoexpress/middleware-schemator esModule import on cjs HOT 11
- @nanoexpress/middleware-schemator Possibility to add title to initialize options HOT 2
- @nanoexpress/middleware-schemator error serve swagger
- @nanoexpress/middleware-static not give an response if file not found HOT 1
- Any other middleware in the todo list
- CJS version - End-of-Life HOT 1
- Expressjs-Session returns error HOT 1
- Body parser not working HOT 1
- [Security Bug]: CVE GHSA-ff7x-qrg7-qggm 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 middlewares.