Typescript + Vue 3 + Atlantis

UI Components for Vue
Post Reply
oren
Posts: 3
Joined: 18 Oct 2021, 16:01

18 Oct 2021, 16:57

Hey all!

I just purchased the Atlantis theme, and I was planning to use it as a boilerplate to start a new frontend project using TypeScript.

After downloading the theme, I noticed the project is not using TypeScript.
I tried cloning https://github.com/primefaces/primevue- ... quickstart and running it but it's throwing an error:

Code: Select all

ERROR in src/components/HelloWorld.vue:11:3
TS2345: Argument of type '{ props: { msg: StringConstructor; }; }' is not assignable to parameter of type 'ComponentOptionsBase<{}, any, any, any, any, any, any, any, string, {}> & ThisType<any> & ThisType<unknown>'.
  Object literal may only specify known properties, and 'props' does not exist in type 'ComponentOptionsBase<{}, any, any, any, any, any, any, any, string, {}> & ThisType<any> & ThisType<unknown>'.
     9 |
    10 | @Options({
  > 11 |   props: {
       |   ^^^^^^^^
  > 12 |     msg: String
       | ^^^^^^^^^^^^^^^
  > 13 |   }
       | ^^^^
    14 | })
    15 | export default class HelloWorld extends Vue {
    16 |   msg!: string
So I'd be happy for any pointers on how to start a new TypeScript project using the Atlantis Primefaces theme :)

Cheers,
Oren

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Nov 2021, 13:45

A typescript version is planned in a couple of weeks. Also using Atlantis Vue forum will be better as it is monitored by our team.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests