/platformic-kafka-sample

Sample app to reproduce bug

Primary LanguageJavaScript

Steps to reproduce compilation issue

bun install
bun run build:dev

The application will fail with compilation issue related to ajv

To check that application works without eslint

Start a kafka container:

docker run -d \
  --name kafka-kraft \
  -p 9092:9092 \
  -e KAFKA_CFG_PROCESS_ROLES=broker,controller \
  -e KAFKA_CFG_NODE_ID=1 \
  -e KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=1@localhost:9093 \
  -e KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093 \
  -e KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://localhost:9092 \
  -e KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER \
  -e ALLOW_PLAINTEXT_LISTENER=yes \
  bitnami/kafka:latest

Setup a topic for kafka

docker exec -it kafka-kraft bash
kafka-topics.sh \
  --bootstrap-server localhost:9092 \
  --create \
  --topic test-topic \
  --partitions 1 \
  --replication-factor 1

Now remove eslint

  • bun remove eslint typescript-eslint
  • delete node_modules manually
  • bun install
  • bun run build:dev

The application will start without any issues