1
sailjsを使用して簡単なアプリを作成しました。 v0.12.9 ユーザモデルのSailjsエラー:エラー:フック( `orm`)の読み込みに失敗しました
-
のようなものですmodule.exports = { attributes: { id : { type : 'integer', unique : true, primaryKey: true }, userName : { type : 'string' required : true }, email : { type : 'email', required : true, unique : true }, ePassword : { type : 'string' } } };
error: A hook (`orm`) failed to load! error: `include-all` attempted to `require(G:\workspare\web\sailsapp\api\models\Users.js)`, but an error occurred:: Details:SyntaxError: Unexpected identifier at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17)
エラーの下に電子を与えます
私は他の答えをチェックしましたが、それは私にとって間違っていることを私に教えてくれる人にとっては役に立ちません。どうすればこのエラーから克服できますか?
OMG!私は5-6回チェックしたが、見つからない "、"。なぜあなたがエラーを見つけたのか分かります。あなたは鷹の目を持っているからです。 :) –
@AtulArvind - WebStormのようなIDEを使い始めると、この種の問題は起こりません。 –