Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Unexpected token . #1

Open
molinto opened this issue Feb 25, 2015 · 0 comments
Open

Unexpected token . #1

molinto opened this issue Feb 25, 2015 · 0 comments

Comments

@molinto
Copy link

molinto commented Feb 25, 2015

npm install factory-girl factory-girl-mongoose

var FactoryGirl = require('factory-girl'),
    Factory = new FactoryGirl.Factory(),
    MongooseAdapter = require('factory-girl-mongoose').MongooseAdapter,
    Factory.setAdapter(MongooseAdapter);

Error:

/home/sharry/Development/Projects/website/factorygirl.js:6
    Factory.setAdapter(MongooseAdapter);
           ^
SyntaxError: Unexpected token .
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
25 Feb 09:20:21 - [nodemon] app crashed - waiting for file changes before starting...
``
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant