Skip to content

Fluent-json-schema typescript error [help] #933

@ghost

Description

💬 Question here

I'm creating a demo project using Platformatic at the latest version (see package.json under). I'm creating some plugins for the project in which I'm using fluent-json-schema that seems to have some Typescript issue. In fact I'm receiving this error:

image

tsconfig.json:

{
  "compilerOptions": {
    "module": "commonjs",
    "esModuleInterop": true,
    "target": "es2020",
    "sourceMap": true,
    "pretty": true,
    "noEmitOnError": true,
    "incremental": true,
    "outDir": "dist"
  },
  "watchOptions": {
    "watchFile": "fixedPollingInterval",
    "watchDirectory": "fixedPollingInterval",
    "fallbackPolling": "dynamicPriority",
    "synchronousWatchDirectory": true,
    "excludeDirectories": [
      "**/node_modules",
      "dist"
    ]
  }
}

Package.json:

{
  "scripts": {
    "start": "platformatic start",
    "dev": "platformatic start --watch",
    "clean": "rm -fr ./dist",
    "build": "platformatic compile",
    "migrate": "platformatic db migrations apply"
  },
  "devDependencies": {
    "fastify": "^4.22.2",
    "typescript": "~5.2.0"
  },
  "dependencies": {
    "@fastify/autoload": "^5.7.1",
    "@fastify/env": "^4.2.0",
    "@fastify/oauth2": "^7.4.0",
    "@platformatic/db": "^0.40.0",
    "fastify-plugin": "^4.5.1",
    "fluent-json-schema": "^4.1.1",
    "platformatic": "^0.40.0"
  },
  "engines": {
    "node": "^18.8.0"
  }
}

Your Environment

  • node version: v18.17.1
  • fastify version: 4.22.2
  • os: Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions