question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

phaser/typescript/typings.json is not a module

See original GitHub issue

This Issue is about (delete as applicable)

  • An error in the TypeScript defs

When using typescript@next I get phaser/typescript/typings.json is not a module. This probably happens because of this line: https://github.com/photonstorm/phaser/blob/master/package.json#L51 I never saw someone linking to the typings.json. I think this must be linked to a .d.ts.

Other errors I get: phaser/typescript/typings.json(2,11): error TS1005: ';' expected.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
photonstormcommented, Jan 10, 2017

The PR should be against the Phaser CE repo: https://github.com/photonstorm/phaser-ce

Phaser 3 will have TS defs, yes. They’re being worked on at the moment.

2reactions
wingypluscommented, Sep 27, 2016

@donaldpipowitch @hccampos From this link, "typings" in package.json should be "./typescripts/phaser.comments.d.ts".

@photonstorm If you agree about it. I can make a pull request to fix that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error TS2306: '...index.d.ts' is not a module - typescript
I do not know about amd , and your generated typings look quite different from mine: The generated index.d.ts typically looks like
Read more >
Phaser Typescript example
This is a quick guide for those who have not been able to implement typescript in their project without Visual Studio (which is...
Read more >
Working with Phaser, TypeScript and webpack – step 3
Hello, the distribution files works fine on computer and Android, but on IOS devices we just have a white page ( no game...
Read more >
Setting up TypeScript, Phaser, Webpack, … Argh!
Write a game that runs in the browser using TypeScript and Phaser 3. Photo by JESHOOTS. ... Notice that this is a JS...
Read more >
Making Your First Game in Phaser 3 with TypeScript
json file. This will contain all of the information about your project and its dependencies. You can answer the init questions however you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found