Git Product home page Git Product logo

adonis-mongoose's People

Contributors

fjsolutions avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

adonis-mongoose's Issues

Invoke failing, fresh install

Latest adonis fresh install failed

Fresh project

$ npm init adonis-ts-app@latest sia_importador

then install and invoke:

$ npm install @fjsolutions/adonis-mongoose --save

added 48 packages, and audited 578 packages in 55s

47 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities



$ node ace invoke @fjsolutions/adonis-mongoose
CREATE: config\database.ts
CREATE: contracts\mongoose.ts
CREATE: contracts\validator.ts
UPDATE: .env { "DB_HOST = localhost","DB_PORT = 27017","DB_USER = ","DB_PASSWORD
 = ","DB_DATABASE = adonis","DB_AUTH_SOURCE = admin","DB_SSL = false" }
UPDATE: .adonisrc.json { commands += "@fjsolutions/adonis-mongoose/build/command
s" }
UPDATE: .adonisrc.json { providers += "@fjsolutions/adonis-mongoose/build/provid
ers/MongooseProvider" }

TypeError: Cannot read property 'forEach' of undefined


1 commands.reduce.commands
  C:\www\sia_importador\node_modules\@adonisjs\ace\build\src\Manifest\Generator.
js:78

2 ManifestGenerator.generate
  C:\www\sia_importador\node_modules\@adonisjs\ace\build\src\Manifest\Generator.
js:67

3 GenerateManifest.handle
  C:\www\sia_importador\node_modules\@adonisjs\core\build\src\Ignitor\Ace\Genera
teManifest\index.js:74

4 Ace.handle
  C:\www\sia_importador\node_modules\@adonisjs\core\build\src\Ignitor\Ace\index.
js:27

this error: TypeError: Cannot read property 'forEach' of undefined

Error: Template file not found

when is use this comment i get this error

`(node:6644) UnhandledPromiseRejectionWarning: Error: Template file not found: @FJSolutions\adonis-mongoose\build\templates\database.ts.mustache
at read (
\smpltmpl\index.js:21:10)
at templateFromFile (\smpltmpl\index.js:80:15)
at Object.apply (
\mrm-core\src\formats\template.js:33:14)
at TemplateLiteralFile.apply (@adonisjs\sink\src\Files\Formats\TemplateLiteral.js:43:26)
at TemplatesManager.copyTemplateFor (
@adonisjs\sink\src\Tasks\TemplatesManager\index.js:98:18)
at @adonisjs\sink\src\Tasks\TemplatesManager\index.js:114:41
at Array.forEach ()
at TemplatesManager.copyTemplatesFor (
@adonisjs\sink\src\Tasks\TemplatesManager\index.js:114:14)
at ~@adonisjs\sink\src\Tasks\TemplatesManager\index.js:132:18
at Array.forEach ()
(node:6644) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6644) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Error: Cannot find module '@zakodium/adonis-mongodb/lib/commands'
Require stack:

  • ~\noop.js

1 resolveFileName
~\resolve-from\index.js:29

2 resolveFrom
~\resolve-from\index.js:43

3 Object.module.exports [as default]
~\resolve-from\index.js:46

4 Object.resolveFrom
~@poppinss\utils\build\src\resolveFrom.js:25

5 ManifestGenerator.loadCommand
~@adonisjs\ace\build\src\Manifest\Generator.js:35

6 anonymous
~@adonisjs\ace\build\src\Manifest\Generator.js:55

7 ManifestGenerator.loadCommands
~@adonisjs\ace\build\src\Manifest\Generator.js:54

8 ManifestGenerator.generate
~@adonisjs\ace\build\src\Manifest\Generator.js:63`

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.