Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
React Native: undefined is not a function (evaluating 'Namespace.extend(Type)') #560
protobuf.js version: <6.1.0>
How to reproduce
Just import protobuf.js in ReactNative:
import Protobuf from 'protobufjs'
After rebuild the app it shows:
Unfortunately, I have practically no experience with React Native, so I have to guess:
One possible workaround could be to use a prebuilt bundle from dist/. These are made for browser environments, though, and do not really support require / import.
If you have additional information or an idea, let me know!