aurelia / cli

The Aurelia 1 command line tool. Use the CLI to create projects, scaffold components, and bundle your app for release.
MIT License
407 stars 134 forks source link

aurelia-validatejs not working #225

Closed smahi closed 8 years ago

smahi commented 8 years ago

Hi, I have add to aurelia.json

{
            "name": "aurelia-validatejs",
            "path": "../node_modules/aurelia-validatejs/dist/amd",
            "main": "aurelia-validatejs"
          }

When running 'au run --env dev' I get the following error :

Tracing aurelia-validation...
Tracing aurelia-validatejs...
{ uid: 9,
  name: 'writeBundles',
  branch: false,
  error: 
   { [Error: ENOENT: no such file or directory, open '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js']
     errno: -2,
     code: 'ENOENT',
     syscall: 'open',
     path: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js',
     moduleTree: [ 'aurelia-validatejs/aurelia-validatejs' ],
     fileName: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/node_modules/aurelia-validatejs/dist/amd/aurelia-validatejs.js' },
  duration: [ 6, 250092321 ],
  time: 1468067136521 }
{ uid: 1,
  name: '<series>',
  branch: true,
  error: 
   { [Error: ENOENT: no such file or directory, open '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js']
     errno: -2,
     code: 'ENOENT',
     syscall: 'open',
     path: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js',
     moduleTree: [ 'aurelia-validatejs/aurelia-validatejs' ],
     fileName: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/node_modules/aurelia-validatejs/dist/amd/aurelia-validatejs.js' },
  duration: [ 6, 536171705 ],
  time: 1468067136535 }
{ uid: 0,
  name: '<series>',
  branch: true,
  error: 
   { [Error: ENOENT: no such file or directory, open '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js']
     errno: -2,
     code: 'ENOENT',
     syscall: 'open',
     path: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js',
     moduleTree: [ 'aurelia-validatejs/aurelia-validatejs' ],
     fileName: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/node_modules/aurelia-validatejs/dist/amd/aurelia-validatejs.js' },
  duration: [ 6, 537864754 ],
  time: 1468067136536 }
{ [Error: ENOENT: no such file or directory, open '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js']
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/validate.js',
  moduleTree: [ 'aurelia-validatejs/aurelia-validatejs' ],
  fileName: '/Users/smahi/Sites/Aurelia-Projects/validation-blur/node_modules/aurelia-validatejs/dist/amd/aurelia-validatejs.js' }

What's wrong in my configuration did i miss something ?

smahi commented 8 years ago

Find the solution i have to add validate.js to the dependencies list like so :

{
            "name": "validate.js",
            "path": "../node_modules/validate.js/",
            "main": "validate"
          }

Thanx to Tyler J Presley @TylerJPresley