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

reference_path and vendor files #25

Open
owengalenjones opened this issue Feb 21, 2015 · 1 comment
Open

reference_path and vendor files #25

owengalenjones opened this issue Feb 21, 2015 · 1 comment

Comments

@owengalenjones
Copy link

Everything seems to be working as expected except that I have been unable to use .d.ts files in the vendor/assets/javascripts directory.

Example:

file structure
app/
  assets/
    application.js
    game.js.ts

vendor/
  assets/
    javascripts/
      phaser/
        phaser.d.ts
        phaser.js
application.js
//= require phaser/phaser
//= require game
game.js.ts
/// <reference path="phaser.d.ts"/>

This results in these error:

TS5007: Cannot resolve referenced file: 
  '/Users/owengalenjones/dev/phaser-test/app/assets/javascripts/phaser.d.ts'.
TS2095: Could not find symbol 'Phaser'.
TS2095: Could not find symbol 'Phaser'. TS2095: Could not find symbol 'Phaser'.

Is there any way to have this reference the phaser.d.ts in vendor/assets/javascripts, or is this impossible?

Thanks!

@danturu
Copy link

danturu commented Sep 21, 2015

@owengalenjones have you found a solution?

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

2 participants