igorklopov / enclose

Compile your Node.js project into an executable
http://enclosejs.com
Other
936 stars 43 forks source link

Error: ENOENT, no such file or directory #64

Closed npabisz closed 8 years ago

npabisz commented 9 years ago

So I'm using module which loads some templates from directory, how should I define config for compilator?

var Steam = require('steam');

If you compile and run this it throws error.

Error: ENOENT, no such file or directory
    at Error (native)
    at Object.Math.Enclose.+/+t+h+e+b+o+x+/+h+o+m+e+/+s+e+r+v+e+r+/+n+o+d+e+/+s+t+e+a+m+/+n+o+d+e+_+m+o+d+u+l+e+s+/+s+t+e+a+m+/+n+o+d+e+_+m+o+d+u+l+e+s+/+s+t+e+a+m+-+r+e+s+o+u+r+c+e+s+/+s+t+e+a+m+_+l+a+n+g+u+a+g+e+_+p+a+r+s+e+r+/+i+n+d+e+x+.+j+s.dev (<anonymous>)
    at r (<anonymous>)
    at N (<anonymous>)
    at f (<anonymous>)
    at Object.Math.Enclose.+/+t+h+e+b+o+x+/+h+o+m+e+/+s+e+r+v+e+r+/+n+o+d+e+/+s+t+e+a+m+/+n+o+d+e+_+m+o+d+u+l+e+s+/+s+t+e+a+m+/+n+o+d+e+_+m+o+d+u+l+e+s+/+s+t+e+a+m+-+r+e+s+o+u+r+c+e+s+/+i+n+d+e+x+.+j+s.dev (<anonymous>)
    at r (<anonymous>)
    at N (<anonymous>)
    at f (<anonymous>)
    at Object.Math.Enclose.+/+t+h+e+b+o+x+/+h+o+m+e+/+s+e+r+v+e+r+/+n+o+d+e+/+s+t+e+a+m+/+n+o+d+e+_+m+o+d+u+l+e+s+/+s+t+e+a+m+/+l+i+b+/+s+t+e+a+m+_+c+l+i+e+n+t+.+j+s.dev (<anonymous>)

These templates are located at ./node_modules/steam/node_modules/steam-resources/steam_language/*. However if I define config like this:

module.exports = {
    assets: "./node_modules/steam/node_modules/steam-resources/steam_language/*"
};

It still throws error, how should I define this or work around? ;)

igorklopov commented 9 years ago

I investigated - this is a bug in EncloseJS itself. I will fix in next release. Thanks!

npabisz commented 9 years ago

That's great, can't wait!

npabisz commented 9 years ago

Any updates on that? :)

igorklopov commented 9 years ago

Compatibility with steam fixed in 1.0.0. Please try again.