1602 / 1602/compound

Error starting after `compound generate crud post title content...`

Offen
#654 2 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
1.6k
Forks
179
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I am just trying to run through the instructions in the Readme.md. I am able to run the crud generate command listed in the Readme.md and receive no errors.

Then when I star the server with `compound s 3000` I get
```compound s 3000
express deprecated app.configure: Check app.get('env') in an if statement config\environment.js:6:9
connect deprecated methodOverride: use method-override npm module instead config\environment.js:16:25
express deprecated app.configure: Check app.get('env') in an if statement config\environments\developmen
t.js:6:9
undefined:26
Post = describe 'Post', ->
^^^^^^

SyntaxError: Unexpected string
at new Function (:null:null)
at loadSchema (D:\Documents\Projects\blog2\node_modules\jugglingdb\lib\railway.js:108:18)
at init (D:\Documents\Projects\blog2\node_modules\jugglingdb\lib\railway.js:74:9)
at CompoundServer.initialize (D:\Documents\Projects\blog2\node_modules\jugglingdb\index.js:94:13)
at emitTwo (events.js:106:13)
at CompoundServer.emit (events.js:194:7)
at CompoundServer.initCompound [as init] (D:\Documents\Projects\blog2\node_modules\compound\lib\compou
nd.js:152:14)
at CompoundServer.initCompoundServer [as init] (D:\Documents\Projects\blog2\node_modules\compound\lib\
server\compound.js:54:29)
at Object. (C:\Users\Mark Stouffer\AppData\Roaming\npm\node_modules\compound\bin\compound.j
s:30:10)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:538:3```

I'm in Windows 10 with node -v 7.8.0

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

The error occurs in jugglingdb's railway.js when loading the schema, likely from a generated model file. Start by examining the generated Post model in app/models/post.js for CoffeeScript syntax issues. Run the server locally to reproduce the error, then check the model's syntax and the schema loading process in node_modules/jugglingdb/lib/railway.js. Ensure the model file uses valid JavaScript syntax for the environment.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, nodejs
Bereich
backend, cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.