Coder Social home page Coder Social logo

Comments (6)

s2dent avatar s2dent commented on August 19, 2024 1

My temporary solution to fix it:

//moleculer.config.ts
import {
  BrokerOptions, Errors, MetricRegistry, ServiceBroker,
} from 'moleculer';

interface UpdatedBrokerOptions extends BrokerOptions {
  replCommands: any;
}
...
const brokerConfig: UpdatedBrokerOptions = {
...
  replCommands: [],
...
}

from moleculer-template-project-typescript.

cyc1e avatar cyc1e commented on August 19, 2024

Hi, i have the same issue. Any solutions?

from moleculer-template-project-typescript.

AndreMaz avatar AndreMaz commented on August 19, 2024

Hi. You're using REPL v0.7.1, right? Can you set replCommands: [] instead of null?

from moleculer-template-project-typescript.

nguyenvietanh avatar nguyenvietanh commented on August 19, 2024

I also set replCommands: [ ], but it's still an error. Seem the file molecluer.config.ts is missing something...

from moleculer-template-project-typescript.

cyc1e avatar cyc1e commented on August 19, 2024

I have moleculer-repl v0.6.6. I did npm outdate and moleculer-repl wasn't on the list of candidates for update. But the docs said that the current version is v0.7.1.. I also tried to instal specific version v0.7.1., but failed. My current

from moleculer-template-project-typescript.

cyc1e avatar cyc1e commented on August 19, 2024

I have moleculer-repl v0.6.6. I did npm outdate and moleculer-repl wasn't on the list of candidates for update. But the docs said that the current version is v0.7.1.. I also tried to instal specific version v0.7.1., but failed. My current config:
nodejs 14.15.4
package.json

`{
"name": "geo_service",
"version": "1.0.0",
"description": "My Moleculer-based microservices project",
"scripts": {
"build": "tsc --build tsconfig.json",
"dev": "ts-node ./node_modules/moleculer/bin/moleculer-runner.js --hot --repl --config moleculer.config.ts services//*.service.ts",
"start": "moleculer-runner --config dist/moleculer.config.js",
"cli": "moleculer connect NATS",
"ci": "jest --watch",
"test": "jest --coverage",
"lint": "eslint --ext .js,.ts .",
"dc:up": "docker-compose up --build -d",
"dc:logs": "docker-compose logs -f",
"dc:down": "docker-compose down"
},
"keywords": [
"microservices",
"moleculer"
],
"author": "",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-prefer-arrow": "^1.2.2",
"jest": "^25.1.0",
"jest-cli": "^25.1.0",
"moleculer-repl": "^0.6.6",
"ts-jest": "^25.3.0",
"ts-node": "^8.8.1"
},
"dependencies": {
"moleculer-web": "^0.9.0",
"moleculer-db": "^0.8.4",
"moleculer-db-adapter-mongo": "^0.4.7",
"nats": "^1.3.2",
"moleculer": "^0.14.0",
"typescript": "^3.8.3",
"@types/jest": "^25.1.4",
"@types/mkdirp": "^1.0.0",
"@types/node": "^13.9.8"
},
"engines": {
"node": ">= 10.x.x"
},
"jest": {
"coverageDirectory": "/coverage",
"testEnvironment": "node",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\.(ts|tsx)$": "ts-jest"
},
"testMatch": [
"
/*.spec.(ts|js)"
],
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.json"
}
}
}
}

`

from moleculer-template-project-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.