Does anyone know how to use Typescript with UiKit? I can use it with custom ui but i have been unable to get a typescript file working with UIKit
I have multiple apps running with UI Kit and TypeScript, so it definitely can work. What issues are you running into? This is an example from my manifest:
modules:
confluence:globalPage:
- key: key
resource: main
render: native
icon: resource:icons;docs.svg
resolver:
function: resolver
title: Great App
route: create
function:
- key: resolver
handler: index.handler
resources:
- key: main
path: src/frontend/index.tsx
@AaronCollier How did you solve this issue? If i create a tsconfig.json with the files list, then the eslint config appears. Do i have to override all forge built in tooling just to use TypeScript when using UIKit?
I haven’t seen that error. My tsconfig.json is this:
{
"compilerOptions": {
"module": "commonjs",
"target": "es2022",
"sourceMap": true,
"moduleResolution": "node",
"esModuleInterop": true,
"lib": ["es2022"],
"types": ["node", "react"],
"baseUrl": "./",
"allowJs": true,
"jsx": "react"
},
"include": ["apps/**/src/**/*"]
}