rbeer / nodebb-plugin-smoothshorts

Seamless short URLs for topic and post links in NodeBB.
MIT License
5 stars 2 forks source link

Upgraded to NodeBB v1.1.0 and your current master and get error on startup #18

Open GitPuffy opened 8 years ago

GitPuffy commented 8 years ago

I have upgraded my NodeBB to v1.1.0 and grabbed your current master of smooth-shorts. Now when I attempt to startup NodeBB I receive this error:

/home/centos/nodebb_installation/DEVpath/node_modules/nodebb-plugin-smoothshorts/lib/controller.j
s:3
const PluginSocket = require.main.require('./src/socket.io/plugins');
^^^^^
12/7 12:50 [23455] - error: SyntaxError: Use of const in strict mode.
    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 Object.Plugins.requireLibrary (/home/centos/nodebb_installation/DEVpath/src/plugins.js:42:
33)
    at registerHooks (/home/centos/nodebb_installation/DEVpath/src/plugins/load.js:88:13)
    at /home/centos/nodebb_installation/DEVpath/src/plugins/load.js:31:6
    at /home/centos/nodebb_installation/DEVpath/node_modules/async/lib/async.js:718:13
    at async.forEachOf.async.eachOf (/home/centos/nodebb_installation/DEVpath/node_modules/async/
lib/async.js:233:13)
    at _parallel (/home/centos/nodebb_installation/DEVpath/node_modules/async/lib/async.js:717:9)
    at Object.async.parallel (/home/centos/nodebb_installation/DEVpath/node_modules/async/lib/asy
nc.js:731:9)
    at /home/centos/nodebb_installation/DEVpath/src/plugins/load.js:29:10
    at /home/centos/nodebb_installation/DEVpath/src/plugins/load.js:291:5
    at /home/centos/nodebb_installation/DEVpath/node_modules/async/lib/async.js:726:13
12/7 12:50 [23455] - warn: [plugins] Unable to parse library for: nodebb-plugin-smoothshorts

Do you have any suggestions on what I may look at to resolve this?

Thank you.