Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './src/hamlc' #90

Closed
melcher opened this issue Jan 29, 2014 · 10 comments
Closed

Cannot find module './src/hamlc' #90

melcher opened this issue Jan 29, 2014 · 10 comments

Comments

@melcher
Copy link

melcher commented Jan 29, 2014

I'm using "haml-coffee": "~1.14.0".
I updated my packages (via npm) and i'm now getting "Error: Cannot find module './src/hamlc'" error from:

node_modules/haml-coffee/index.js:2

Is anyone else seeing this? It seems like the code should simply be requiring coffee-script then loading the source coffee file (which exists in the ~./src folder) so I have no idea why this stopped working. Am I the only one seeing this?

Stacktrace in case it's helpful. Please let me know if there's any other info I can provide.

Error: Cannot find module './src/hamlc'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/graham/src/hint/provider_portal/node_modules/haml-coffee/index.js:2:18)
@netzpirat
Copy link
Owner

This broke with CoffeeScript 1.7 released yesterday. Thanks for reporting, version 1.14.1 fixes the issue.

@melcher
Copy link
Author

melcher commented Jan 29, 2014

Awesome, thanks!

@melcher
Copy link
Author

melcher commented Jan 29, 2014

Downgrading the coffee-script version to 1.6.3 also resolves the issue.

@vendethiel
Copy link
Collaborator

that's not really how you're supposed to do it :/

@vendethiel
Copy link
Collaborator

@netzpirat
Copy link
Owner

@Nami-Doc I completely agree for projects not depending on CoffeeScript at runtime.

@vendethiel
Copy link
Collaborator

if it's used to build with something else that might rely on coffee too, if it's used as a middleware, etc ...

@mustafah
Copy link

mustafah commented Feb 5, 2014

npm does not have the very latest version 1.14.1 ... thank you

@netzpirat
Copy link
Owner

Strange... Just published 1.14.1 Thanks for reporting.

@adam-lynch
Copy link

This seems to be an issue on Windows still. See the biscotto issue referenced above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants