Code Monkey home page Code Monkey logo

Comments (7)

bikerp avatar bikerp commented on June 23, 2024 1

Ok, so when I require 'cqrs-domain' package directly from the tested folder and it works.
Thanks

from node-cqrs-domain.

nanov avatar nanov commented on June 23, 2024

Depending on your environment, you could try using :

path.join(process.cwd(), './src/whenever/you/might/need')

from node-cqrs-domain.

bikerp avatar bikerp commented on June 23, 2024

I tried but the result is the same. I still get the error message ' No structure loaded for ...!'

from node-cqrs-domain.

nanov avatar nanov commented on June 23, 2024

In order to be able to provide more detailed help I would need a test repro which demonstrates the problem.

Hints:

  • Is this structure working for you NOT in tests?
  • Have you tried adding another ( empty/dummy ) folder on the same level as item ?

from node-cqrs-domain.

bikerp avatar bikerp commented on June 23, 2024

I have forked the cqrs-sample project and set up the tests. The repo is here https://github.com/bikerp/cqrs-sample
I think I found the issue. If the folder src/domain contains node_modules then the test fails with the mentioned error.
If I delete the node_modules folder the the test succeed

from node-cqrs-domain.

bikerp avatar bikerp commented on June 23, 2024

@nanov Any idea what could cause the issue?

from node-cqrs-domain.

nanov avatar nanov commented on June 23, 2024

You did answer yourself, I guess you would have to introduce another folder layer in order for this to work.

from node-cqrs-domain.

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.