Git Product home page Git Product logo

servino's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ozzy1136

servino's Issues

`TypeError: Cannot read properties of undefined (reading 'size')`

Nice package!

I got an error with servino when I changed a file and it tried to refresh the page:

โฏ npx servino sv .
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
 > [START SERVER 10:38:02 PM] http://127.0.0.1:8125 
 > [ROOT DIR]  
 > [WATCHING DIR] /Users/trusktr/src/lume+lume+develop 
 [WAITING FOR CHANGES] 
 [New File To Watch] /Users/trusktr/src/lume+lume+develop/examples/react-typescript/node_modules/lume/examples/autolayout.html 
 [New File To Watch] /Users/trusktr/src/lume+lume+develop/examples/react/node_modules/lume/examples/autolayout.html 
 [New File To Watch] /Users/trusktr/src/lume+lume+develop/apps/website/node_modules/lume/examples/autolayout.html 
 [New File To Watch] /Users/trusktr/src/lume+lume+develop/apps/docs/node_modules/lume/examples/autolayout.html 
/Users/trusktr/.npm/_npx/4ae55a2b94b7f462/node_modules/servino/src/monitor/Monitor.js:46
          Log('cyan', `[FILE CHANGE] ${path.relative(process.cwd(), relativeFilePath)} (${Stats.size} Byte)`);
                                                                                                ^

TypeError: Cannot read properties of undefined (reading 'size')
    at Timeout._onTimeout (/Users/trusktr/.npm/_npx/4ae55a2b94b7f462/node_modules/servino/src/monitor/Monitor.js:46:97)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

Node.js v20.6.1

Right when I saved the HTML file I was editing, that's when that FILE CHANGE happened and then error.

Open index.html by default

When I start the server from the CLI the localhost address is opened in the browser, but instead of the index.html file being displayed I get shown a list of the files in the root directory. Am I missing something or is this not an option at the moment?

I just installed this package and think it's a nice project, I wouldn't mind having a go at adding this feature if it's not currently available.

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.