brianchirls / proto-loader

Protocol Buffer loader module for webpack
27 stars 18 forks source link

require error #11

Open alexvarsh opened 8 years ago

alexvarsh commented 8 years ago

Hi, I installed proto-loader, updated webpack/code.

my code: var ProtoBuf = require('protobufjs'); var protoDefinition = require('.recordSource.proto');

Getting error:

/node_modules/babel-core/node_modules/babylon/lib/parser/location.js:22 var err = new SyntaxError(message);
SyntaxError: /../recordSource.proto: The keyword 'package' is reserved (3:0)

1 | syntax = "proto3"; 2 |

3 | package MsgPerformance; | ^ 4 | message RecordSource {

was wondering if you have any suggestions?