chilts / awssum

(deprecated: use aws-sdk) Node.js modules for talking to lots of Web Service APIs.
Other
462 stars 57 forks source link

AWSSUM 1.0.0 Beta breaks #160

Closed fizerkhan closed 11 years ago

fizerkhan commented 11 years ago
"Error: Cannot find module './amazon/amazon'",
"    at Function.Module._resolveFilename (module.js:338:15)",
"    at Function.Module._load (module.js:280:25)",
"    at Module.require (module.js:362:17)",
"    at require (module.js:378:17)",
"    at Object.load (/Users/guest/development/git/myproject/node_modules/awssum/awssum.js:43:12)",
"    at Object.<anonymous> (/Users/guest/development/git/myproject/server/lib/aws/index.js:11:23)",
"    at Module._compile (module.js:449:26)",
"    at Object.Module._extensions..js (module.js:467:10)",
"    at Module.load (module.js:356:32)",
"    at Function.Module._load (module.js:312:12)"
chilts commented 11 years ago

I have no idea what version of AwsSum you're using or how you're using it. Please provide more info.

fizerkhan commented 11 years ago

@chilts Thanks. I use 1.0.0 Beta. But i did not aware of new plugin architecture. Now it works with new plugin architecture. It will be good if there is any migration steps for old version(< 1.0.0) users.

chilts commented 11 years ago

Ok, thanks. I'll look at putting something on the main awssum/awssum page. Cheers. :)

fizerkhan commented 11 years ago

Thanks mate :+1:

inadarei commented 11 years ago

Um, to clarify this issue further, this is what should be in package.json if you are using say S3 and SQS modules:

, "dependencies": {
    "awssum"            : "1.x"
  , "awssum-amazon-sqs" : "1.x"
  , "awssum-amazon-s3": "1.x"
  }

AND this is how you should initialize variables, INSTEAD of what the current documentation at awssum.io tells you about the module.load() thingie:

var awssum = require('awssum')
    , amazon = require('awssum-amazon')
    , S3 = require('awssum-amazon-sqs').S3;
    , Sqs = require('awssum-amazon-sqs').Sqs;