igorklopov / enclose

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

Error with Mincer library #52

Closed dapriett closed 7 years ago

dapriett commented 9 years ago

Hello,

I wanted to try out enclose on my sails app, but I'm running into errors with a module I'm using, mincer:

/sails-app/node_modules/mincer/lib/mincer/engines/handlebars_engine.js
  error  Cannot find module 'handlebars' from '/sails-app/node_modules/mincer/lib/mincer/engines'

/sails-app/node_modules/mincer/lib/mincer/engines/jade_engine.js
  error  Cannot find module 'jade' from '/sails-app/node_modules/mincer/lib/mincer/engines'

/sails-app/node_modules/mincer/lib/mincer/engines/stylus_engine.js
  error  Cannot find module 'stylus' from '/sails-app/node_modules/mincer/lib/mincer/engines'

/sails-app/node_modules/mincer/lib/mincer/processors/autoprefixer.js
  error  Cannot find module 'autoprefixer-core' from '/sails-app/node_modules/mincer/lib/mincer/processors'

/sails-app/node_modules/mincer/lib/mincer/compressors/csso_compressor.js
  error  Cannot find module 'csso' from '/sails-app/node_modules/mincer/lib/mincer/compressors'

I'm using the example sails app compile script: https://github.com/igorklopov/enclose/blob/master/examples/26-sails/compile.js

How would I modify it to ignore those requires in that module?

Thanks!

dapriett commented 9 years ago

In the config is there a way to patch node_modules?

igorklopov commented 7 years ago

Dear users of EncloseJS! I highly encourage you to switch to https://github.com/zeit/pkg It is rewritten successor of EncloseJS. It is open source, and all improvements will go there. Please check if pkg has your issue unresolved, and if it is true, reopen your issue there: https://github.com/zeit/pkg/issues