You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm most likely missing something on my code, but I really can't figure out what's wrong.
I have no problem whatsoever in running your example and that's pretty much what's bugging me.
I'm using node v5.1.0 on OSX 10.10.5.
I've tried to reduce my code to the simplest possible example:
const Hapi = require('hapi');
const server = new Hapi.Server();
server.register([
{ register: require('@tanepiper/quorra') }
], (error) => {
if (error) { throw error; }
server.start((error) => console.log(error, server.info));
});
By issuing the command node index.js, I always get the following stackTrace:
/private/tmp/quorra-example/node_modules/@tanepiper/quorra/lib/handler.js:100
const content = internals[response.source.renderMethod](<RoutingContext {...renderProps} createElement={
^
SyntaxError: Unexpected token <
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:404:25)
at Module._extensions..js (module.js:432:10)
at require.extensions.(anonymous function) (/Users/couto/.nvm/versions/node/v5.1.0/lib/node_modules/babel-cli/node_modules/babel-register/lib/node.js:135:7)
at Object.require.extensions.(anonymous function) [as .js] (/private/tmp/quorra-example/node_modules/babel-register/lib/node.js:135:7)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/private/tmp/quorra-example/node_modules/@tanepiper/quorra/lib/index.js:8:22)
The text was updated successfully, but these errors were encountered:
I'm most likely missing something on my code, but I really can't figure out what's wrong.
I have no problem whatsoever in running your example and that's pretty much what's bugging me.
I'm using node v5.1.0 on OSX 10.10.5.
I've tried to reduce my code to the simplest possible example:
package.json
index.js
By issuing the command
node index.js
, I always get the following stackTrace:The text was updated successfully, but these errors were encountered: