gabrielgrant / node-ember-precompile

Precompile Handlebars templates for Ember.js
53 stars 25 forks source link

Strange error: Is this module tested under windows? #11

Closed mavilein closed 11 years ago

mavilein commented 11 years ago

I tried to use this plugin under windows and experienced the following error:

fs.js:427
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory 'C:\Users\tmueller\workspace\movieladder\cinema-showtime\src\main\webapp\handlebars\*.handlebars'
    at Object.fs.openSync (fs.js:427:18)
    at Object.fs.readFileSync (fs.js:284:15)
    at module.exports (C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\index.js:37:18)
    at C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\bin\ember-precompile:32:11
    at Array.forEach (native)
    at main (C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\bin\ember-precompile:31:14)
    at Object.<anonymous> (C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\bin\ember-precompile:36:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

I issued this command in my project to run ember-precompile:

C:\Users\tmueller\workspace\movieladder\cinema-showtime>C:\Users\tmueller\AppData\Roaming\npm\ember-precompile ./src/main/webapp/handlebars/*.handlebars -f ./src/main/w
ebapp/static/js/templates.js

We used this plugin successfully on Mac OS X without any problems for the same project, but we can't get it to work under Windows. We are no node experts. Maybe this is not related to this plugin. Can you help us on this error?

nettles-jarrod commented 11 years ago

Do other node packages work correctly for you on Windows?

On Apr 9, 2013, at 5:27 AM, mavilein notifications@github.com wrote:

I tried to use this plugin under windows and experienced the following error:

fs.js:427 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: ENOENT, no such file or directory 'C:\Users\tmueller\workspace\movieladder\cinema-showtime\src\main\webapp\handlebars*.handlebars' at Object.fs.openSync (fs.js:427:18) at Object.fs.readFileSync (fs.js:284:15) at module.exports (C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\index.js:37:18) at C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\bin\ember-precompile:32:11 at Array.forEach (native) at main (C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\bin\ember-precompile:31:14) at Object. (C:\Users\tmueller\AppData\Roaming\npm\node_modules\ember-precompile\bin\ember-precompile:36:1) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) I issued this command in my project:

C:\Users\tmueller\workspace\movieladder\cinema-showtime>C:\Users\tmueller\AppData\Roaming\npm\ember-precompile ./src/main/webapp/handlebars/*.handlebars -f ./src/main/w ebapp/static/js/templates.js We used this plugin successfully on Mac OS X without any problems for the same project, but we can't get it to work under Windows. We are no node experts. Maybe this is not related to this plugin. Can you help us on this error?

— Reply to this email directly or view it on GitHub.

mavilein commented 11 years ago

Hmm, this is actually the only package we are using :-/. Do you have a recommendation for a package we could use for testing?

nettles-jarrod commented 11 years ago

I would just try anything else on the npm site. If those aren't working then it is a problem with your setup on Windows. Otherwise we'll know its a problem with this package in particular.

On Apr 10, 2013, at 2:09 AM, mavilein notifications@github.com wrote:

Hmm, this is actually the only package we are using :-/. Do you have a recommendation for a package we could use for testing?

— Reply to this email directly or view it on GitHub.