Code Monkey home page Code Monkey logo

rsdi3's Issues

Thank you!

Just wanted to drop in and congratulate you on the next version. We are using your RSDI in our production applications. We use Vue and Clean Architecture and your solution has helped us keep the DI implementation separate from the infrastructure layer. I was searching for such a solution and by accident stumbled on yours. Great job.

If you need any feedback or help my email is dima[at]dreamvention.com

Error: require() of ES Module node_modules\rsdi\dist\index.js

I need some help with this:

[ERROR] 01:43:45 Error: require() of ES Module \node_modules\rsdi\dist\index.js from \src\infrastructure\di.ts not supported.
Instead change the require of index.js in \src\infrastructure\di.ts to a dynamic import() which is available in all CommonJS modules.

I updated the version and make all adjustments needed

This expression is not constructable.

This expression is not constructable.
  Type 'typeof import("..../node_modules/rsdi/dist/index")' has no construct signatures.ts

based on the documentation DIContainer should be the default export.

import DIContainer from 'rsdi';

export type AppDIContainer = ReturnType<typeof configureDI>;
...

but if we check the code, it is a named export https://github.com/radzserg/rsdi3/blob/main/src/DIContainer.ts

line 21 export class DIContainer<ContainerResolvers extends ResolvedDependencies = {}> {

import { DIContainer} from 'rsdi';

fixes it.

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.