Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Issue with dynamic require statement #169

Open
paulyoung opened this issue Sep 28, 2012 · 3 comments
Open

Issue with dynamic require statement #169

paulyoung opened this issue Sep 28, 2012 · 3 comments

Comments

@paulyoung
Copy link

When I run tests I'm getting this error:

[coffeescript] Error in compiling file: /path/to/file

templates/#{path} not found

In that file, there's this

compiler = (path) ->
  return require("templates/#{path}")

What's strange is even if I comment out that line, it still fails. Only if I remove it will tests run.

@paulyoung
Copy link
Author

I've resorted to this for now:

compiler = (path) ->
  return require("templates/" + path)

@kowal
Copy link

kowal commented Oct 15, 2012

@paulyoung are you using requireJS together with jasmine-headless-webkit?

@paulyoung
Copy link
Author

We were, but are using currently mocha, chai and sinon.

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

No branches or pull requests

2 participants