Typescript errors when using `npx frontity create --typescript`

I am starting yet another project, and this time we want to use TS. We decided to use the mars-typescript-theme as a start to save us some time.

So after I run npx frontity create --typescript everything seems to work properly, but then I am getting ts warning/error in the frontity.settings.ts file.

I am very new to TS so I am really struggling to figure out what is going on.

Here are some screenshots of what i see in VSC:

For testing purposes I also made a new sandbox from that repository, and weird enough there i dont get this warnings.

Could this be an issue with my VSC? I am really confused.
Hopefully someone can help with this.

1 Like

Hey @ni.bonev,

I’ve encountered this exact issue after a fresh installation of the project with the Mars Theme TypeScript package. Found this topic where another user encountered a similar issue.

Were you able to resolve this issue by yourself?

Thanks!

Hey Ben,

I think “resolved” would be a strong word to use in this situation. I am not that experienced with TS so it was a bit of a struggle. In the end my settings file looks like this:

I know this might not be strict enought but it works for us for now.

Hopefully it helps.

Greetings,
Nikolay

1 Like

Hey Nikolay,

thanks for your help and sharing your workaround, I appreciate it.

At least that will prevent the error output in the log. :grin:

Regards,
Ben

1 Like