phaser/typescript/typings.json is not a module
See original GitHub issueThis 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:
- Created 7 years ago
- Reactions:2
- Comments:16 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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.