-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Cannot find type definition file for 'phaser' #20
Comments
Do you have this configuration? https://github.com/proyecto26/ion-phaser/blob/master/demo-angular/tsconfig.json#L24 |
This is my tsconfig.json {
"compileOnSave": false,
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom",
"scripthost"
],
"paths": {
"@app/*": [
"src/app/*"
],
"@assets/*": [
"src/assets/*"
],
"@env/*": [
"src/environments/*"
]
}
},
"files": ["src/phaser.d.ts"],
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
} We have the This probably sounds like a weird configuration, maybe I need to get rid of the old phaser games as I rebuild and put that back into node_modules? But shouldn't adding that to files from any destination still work? |
@tljesse can you attach a repo to be able to reproduce this issue? |
Please let me know if the issue persist with the last version, thanks! |
Environment
Angular 9.1.0
Ionic 5.1.0
Typescript 3.7.5
Error Message
I'm getting this error when trying to run
ionic serve
and I haven't found a solution. I have the filephaser.d.ts
in the src folder and have tried to add that directly totsconfig.json
files list without success.When I remove the line
/// <reference types="Phaser" />
from theindex.d.ts
file in @ion-phaser then it will run but this can't be the solution. Any help is greatly appreciated!The text was updated successfully, but these errors were encountered: