Giter Site home page Giter Site logo

basil serve error in Mac about devkit HOT 8 CLOSED

play-co avatar play-co commented on May 27, 2024
basil serve error in Mac

from devkit.

Comments (8)

thiagolp90 avatar thiagolp90 commented on May 27, 2024

Same problem... but, i use Linux...

from devkit.

mikehenrty avatar mikehenrty commented on May 27, 2024

This is something we are seeing with node v0.10. We are investigating currently.

from devkit.

mikehenrty avatar mikehenrty commented on May 27, 2024

This is fixed upstream and will go out with the next release. In the meantime if you want to patch it yourself, go to /src/ProjectManager.js line 41 and change

var localProjects = fs.readdirSync(localProjectsPath).map(common.paths.projects);

to this:

var localProjects = fs.readdirSync(localProjectsPath).map(function (filename) {
    return common.paths.projects(filename);
});

from devkit.

chrisjaque1990 avatar chrisjaque1990 commented on May 27, 2024

not found this code in line 44 but found this in line 41:

var localProjects = fs.readdirSync(localProjectsPath).map(common.paths.projects);

and i change for this:

var localProjects = fs.readdirSync(localProjectsPath).map(function (filename) {
return common.paths.projects(filename);
});

is correct???

from devkit.

mikehenrty avatar mikehenrty commented on May 27, 2024

@chrisjaque1990 That looks like a separate bug. Please report it in a new issue.

from devkit.

chrisjaque1990 avatar chrisjaque1990 commented on May 27, 2024

oks sorry will update comment in this issue, but the change is correct?

from devkit.

mikehenrty avatar mikehenrty commented on May 27, 2024

Yup, your change is correct. I've updated my earlier comment to reflect it. Thanks!

from devkit.

mikehenrty avatar mikehenrty commented on May 27, 2024

Fixed in the latest release.

from devkit.

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.