Code Monkey home page Code Monkey logo

drivine-inspiration's Issues

Cannot start application because of PersistenceManager injection

Local neo4j instance running at v4.1

docker run \     
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    neo4j

.env confirguration

SERVER_PORT=3000

NODE_ENV=dev

#Valid options are [VERBOSE, DEBUG, INFO, WARN, ERROR, NONE]
DRIVINE_LOG_LEVEL=VERBOSE

NEO_DATABASE_TYPE=NEO4J
NEO_DATABASE_USER=neo4j
NEO_DATABASE_PASSWORD=neo4j
NEO_DATABASE_HOST=localhost
NEO_DATABASE_PORT=7687

Logs

[nodemon] starting `ts-node -r tsconfig-paths/register src/main.ts`
[Nest] 37857   - 10/10/2020, 17:17:39   [NestFactory] Starting Nest application...
[Nest] 37857   - 10/10/2020, 17:17:39   [InstanceLoader] AppModule dependencies initialized +18ms
[Nest] 37857   - 10/10/2020, 17:17:39   [ExceptionHandler] Nest can't resolve dependencies of the HealthRepository (?). Please make sure that the argument PersistenceManager:default at index [0] is available in the HealthModule context.

Potential solutions:
- If PersistenceManager:default is a provider, is it part of the current HealthModule?
- If PersistenceManager:default is exported from a separate @Module, is that module imported within HealthModule?
  @Module({
    imports: [ /* the Module containing PersistenceManager:default */ ]
  })
 +3ms
Error: Nest can't resolve dependencies of the HealthRepository (?). Please make sure that the argument PersistenceManager:default at index [0] is available in the HealthModule context.

Potential solutions:
- If PersistenceManager:default is a provider, is it part of the current HealthModule?
- If PersistenceManager:default is exported from a separate @Module, is that module imported within HealthModule?
  @Module({
    imports: [ /* the Module containing PersistenceManager:default */ ]
  })

New to nest not entirely sure where the issue is, PersistenceManager isnt injected into the Health module directly.
Two injection points I think are the HealthRepository and the root instantiation of Drivine

Is there a need to inject PersistenceManager into each module?

Note

Removed the ^ from all the deps in the package.json and deleted to package-lock.json and did a clean npm i still ran into the same issue.
Wanted to make sure some other dependencies weren't causing the issue

.cypher files missing after transpilation

After the build step there are no .cypher files in the dist directory. That is because of tsc behaviour to only include ts/js files. How did you manage to get it to work?

Cannot find module '/****/api/dist/user/repository/userById.cypher'
Require stack:

  • /****/api/node_modules/@liberation-data/drivine/DrivineInjectionDecorators.js

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.