Comments (6)
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.
Hi, i have the same issue. Any solutions?
from moleculer-template-project-typescript.
Hi. You're using REPL v0.7.1, right? Can you set replCommands: []
instead of null
?
from moleculer-template-project-typescript.
I also set replCommands: [ ], but it's still an error. Seem the file molecluer.config.ts is missing something...
from moleculer-template-project-typescript.
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.
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)
- moleculer init project-typescript transporter not configered HOT 3
- Upgrade template to 0.14 HOT 6
- How to access cacher? HOT 2
- Created and Started hooks are not called. HOT 2
- undefined in events - event not fired problem
- [Bug] Service products cannot modify
- Default tests are not working HOT 12
- App run on dockers succesfully exits. HOT 9
- Debug not working - Could not read source map for file /node_modules/typescript/lib/typescript.js HOT 1
- VsCode Debugging
- I got syntax error on "authenticate" method of the API service (line 115) HOT 1
- Problems with metrics and tracking not working as config. HOT 4
- Problem installing moleculer-template-project-ts HOT 1
- delete this sorry
- Unable to create ServiceBroker. BrokerOptionsError: Invalid tracing exporter type ''." HOT 1
- Compilation issues HOT 1
- TS2305: Module "moleculer" has no exported member StartedStoppedHandler
- Broker with API Gateway not starting after init. HOT 2
- Support for typed "this" in lifecycle methods (created, started, stopped) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moleculer-template-project-typescript.