Chrome Extension UTF-8 encoding error

25 views
Skip to first unread message

Avie Seegobin

unread,
Feb 25, 2020, 7:00:44 PM2/25/20
to Protocol Buffers
Hi,

I'm trying to add Protobuf to my Chrome Extension project and I get an error that the compiled JS file is not UTF-8 encoded.

Could not load file 'dist/build.js' for content script. It isn't UTF-8 encoded.

I used npm to install google-protobuf v3.11.4.

Mac OS 10.14.6
Node v10.8.0
Npm v6.2.0


I can confirm this is an error with google-protobuf because the compiled JS file loads correctly in the Chrome Extension when I don't have the require statement:
require('google-protobuf')


Has anyone seen this before/know a way to fix this? I can't seem to find exactly what in the google-protobuf package could be broken.

Thanks
Reply all
Reply to author
Forward
0 new messages