1602 / 1602/compound

SyntaxError: Unexpected token >

オープン
#642 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.6k
フォーク
179
PR マージ指標
30日以内にマージされた PR はありません

説明

Got error when upgrading to latest version from 1.1.13-1

/usr/local/bin/node --debug server.js
debugger listening on port 5858

xxxxxxxx/xxxx/xxxx/config/environment.coffee:1
orts, require, module, __filename, __dirname) { module.exports = (compound) ->
^
WARNING: /xxxxxxxx/xxxx/xxxx/config/environment.coffee should export function(compound) but given undefined
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 Module.require (module.js:364:17)
at require (module.js:380:17)
at requireFun (/xxxxxxxx/xxxx/xxxx/node_modules/compound/lib/compound.js:253:15)
at requireIfExists (/xxxxxxxx/xxxx/xxxx/node_modules/compound/lib/compound.js:243:9)
at CompoundServer.configureApp [as configure](/xxxxxxxx/xxxx/xxxx/node_modules/compound/lib/compound.js:224:9)
at CompoundServer.initCompound (/xxxxxxxx/xxxx/xxxx/node_modules/compound/lib/compound.js:118:18)
at CompoundServer.initCompoundServer [as init](/xxxxxxxx/xxxx/xxxx/node_modules/compound/lib/server/compound.js:54:29)
at /xxxxxxxx/xxxx/xxxx/node_modules/compound/lib/compound.js:84:22
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The error occurs in config/environment.coffee when upgrading from version 1.1.13-1. Start by examining the CoffeeScript syntax in that file, particularly the arrow function export. Check the compound library's requireIfExists and requireFun functions in node_modules/compound/lib/compound.js to see how CoffeeScript files are loaded. Compare the module export expectations between the old and new versions of the compound framework.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
coffeescript, javascript, node.js
領域
backend, build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。