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

Error when running app #3

Open
zhiyong-ft opened this issue Jun 3, 2019 · 3 comments
Open

Error when running app #3

zhiyong-ft opened this issue Jun 3, 2019 · 3 comments

Comments

@zhiyong-ft
Copy link

When I tried to run the following command:

npm run serve

I get the following error:

ERROR in D:/Mobile/ionic/ionic-vue-conference-app-master/src/views/About.vue
61:18 Parameter 'event' implicitly has an 'any' type.
59 | export default class About extends Vue {
60 |

61 | presentPopover(event){
| ^
62 | console.log('click', event)
63 | }
64 | }
Version: typescript 3.0.1
Time: 17848ms

I am running this on Windows 10, with NPM version 6.9.0, vue: 3.8.2, ionic: 4.12.0

I can still access the app from localhost, so the app should still work mostly.

@ajinkya-bhosale
Copy link

Add following in tsconfig.json

"noImplicitAny": false

@fcaivano
Copy link

The tsconfig.json has already a strict property set to true and the doc's say:

Enable all strict type checking options. Enabling --strict enables --noImplicitAny, --noImplicitThis, --alwaysStrict, --strictBindCallApply, --strictNullChecks, --strictFunctionTypes and --strictPropertyInitialization.

See: https://www.typescriptlang.org/docs/handbook/compiler-options.html

Then it's better to just change strict to false

And then $npm run build

@Start1221
Copy link

export default class About extends Vue {
presentPopover(event:Event){
//console.log('click', event)
}
}

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

4 participants