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

Can't find .coffee module #649

Closed
Gijsjan opened this issue Feb 12, 2014 · 4 comments
Closed

Can't find .coffee module #649

Gijsjan opened this issue Feb 12, 2014 · 4 comments

Comments

@Gijsjan
Copy link

Gijsjan commented Feb 12, 2014

When I try

browserify --extension=coffee --extension=jade -t coffeeify -t jadeify ./src/coffee/main.coffee > bundle.js

I get

Error: module "./app" not found from /home/user/project/src/coffee/main.coffee

When I change './app' to './app.coffee' in main.coffee, it works, but that should not be necessary right?

@andreypopp
Copy link
Contributor

Try browserify --extension=.coffee ..., note the .coffee instead of coffee.

@ghost
Copy link

ghost commented Feb 13, 2014

browserify could add the . if people forget it.

@Gijsjan
Copy link
Author

Gijsjan commented Feb 13, 2014

I was thinking RTFM, but it doesn't state you have to add the dot, so an example in the docs would help. Thnx for browserify!

@goto-bus-stop
Copy link
Member

fixed in #1380

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

No branches or pull requests

4 participants