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

Parse failed after update to 2.9.1 (typescript) #6256

Closed
NomNes opened this issue Aug 20, 2019 · 4 comments

Comments

@NomNes
Copy link

commented Aug 20, 2019

Module parse failed: The keyword 'interface' is reserved (22:0) for interfaces
Module parse failed: Unexpected character '@' (12:0) for decorators

And type error:

Error:(9, 9) TS2345: Argument of type '{ fetch({ store }: { store: any; }): void; }' is not assignable to parameter of type 'ComponentOptions<Index, DefaultData<Index>, DefaultMethods<Index>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>> & ThisType<Index>'.
  Object literal may only specify known properties, and 'fetch' does not exist in type 'ComponentOptions<Index, DefaultData<Index>, DefaultMethods<Index>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>> & ThisType<Index>
This question is available on Nuxt community (#c9661)

@cmty cmty bot closed this Aug 20, 2019

@cmty cmty bot added the cmty:question label Aug 20, 2019

@cmty

This comment has been minimized.

Copy link

commented Aug 20, 2019

This issue as been imported as question since it does not respect nuxt.js issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/nuxt.js/issues/c9661.

This comment has been minimized.

Copy link

commented Aug 28, 2019 — with CMTY

Did you find a solution yet?

@Mikkou

This comment has been minimized.

Copy link

commented Aug 29, 2019

@NomNes can you show tsconfig.json and nuxt.config.js?

This comment has been minimized.

Copy link
Author

commented Aug 29, 2019 — with CMTY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.