FlowRouter.route('/', {
action() {
ReactLayout.render(App, {content: <LP />});
}
});
我按照https://kadira.io/academy/meteor-routing-guide/content/rendering-react-components指南使用Flow Router。但是,我一直收到这个错误:
我不明白为什么会有意外的令牌。有谁知道吗?
/Users/GLu/Desktop/more2me/.meteor/local/build/programs/server/app/lib/router.js:11
ReactLayout.render(App, { content: <LP /> }); // 3
^
SyntaxError: Unexpected token <
at /Users/GLu/Desktop/more2me/.meteor/local/build/programs/server/boot.js:241:30
at Array.forEach (native)
at Function._.each._.forEach (/Users/GLu/.meteor/packages/meteor-tool/.1.1.10.1b51q9m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
at /Users/GLu/Desktop/more2me/.meteor/local/build/programs/server/boot.js:137:5
非常感谢您提供任何帮助。