I installed one library into React project with NPM.
The comand was npm i react-modal-video after i installed and started local server
React crashed with message TypeError: Cannot read properties of undefined (reading 'Tag')
I made a git stash for project in order to stash all changes, but it didn't help.
Even another project doesn't start anymore.
It looks like something went wrong with node modules.
But i cannot understand what to do with them i already uninstalled that library and made npm install.
Does anyone had sometging like this before ?
I've been trying to bundle a rest api with node.js, express.js and mongoose into one file, nor browserify neither rollup worked for me, i keep having problems of dependencies that are not found as a module requires another, can someone help, even with a tutorial please?
for exemple with browserify i get the error :
var req = Object.create(http.IncomingMessage.prototype)
TypeError: Object prototype may only be an Object or null: undefined
at Function.create (<anonymous>)
with rollup or gulp-concat-js i have module not found errors
On every react-native project I try and build (from start kits, to an empty project) the RNI18n error.
None of rht following worked
I get no errors in the console.
I have tried with a fresh (unmodified) react-starter repo
I uninstalled (then re-installed) react native (via npm)
I also posted on their repo without an answer
I tried running from the cmd "react-native run-ios" and from the .xcodeproj file
I am on OSX. Non-react app's work fine.
The error:
2016-09-06 21:48:56.897 [warn][tid:main][RCTEventEmitter.m:54] Sending `websocketFailed` with no listeners registered.
2016-09-06 21:48:56.991 [error][tid:com.facebook.react.JavaScript] undefined is not an object (evaluating 'RNI18n.locale')
2016-09-06 21:48:56.994 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: undefined is not an object (evaluating 'RNI18n.locale')
2016-09-06 21:48:57.008 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: The stack is null
2016-09-06 21:48:57.064 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module.
2016-09-06 21:48:57.066 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: Module AppRegistry is not a registered callable module.
2016-09-06 21:48:57.072 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: The stack is null
Reboot was required of my PC. This may be a bug in the current (latest) version (0.39)
I had similar problems on testing with Mocha. But I sent PR and it was approved a while ago (https://github.com/AlexanderZaytsev/react-native-i18n/blob/master/index.js)
There's a chance that your links / libraries on iOS is not properly set. If rnpm link has failed for some reason, maybe you want to read about manual setup (https://github.com/AlexanderZaytsev/react-native-i18n#manual-setup)
First make sure to install the React i18n package:
npm install react-native-i18n --save
Then you need to add the library in xcode, I assume that's what you are missing, here is how:
Right click on Libraries -> Add Files to "Your Project", then search in your node-modules, your react-native-i18n/ios/RNI18n.xcodeproj
Then go to Build Phases -> Link Binary With Libraries, and select the library you just added.
Something like this (I don't have it on my list because I already added ;-) )
I hope it helps, and good luck!!!
Try lowering the version of i18n. This worked for me.
I am using yeoman generation of ember app.
I've installed ember-validations using the following line in dependencies, bower.json file.
"ember-validations": "http://builds.dockyard.com.s3.amazonaws.com/ember-validations/ember-validations-latest.js"
Then I ran
bower install
This is how I am using the validator in the controller
Client.UsersCreateController = Ember.ObjectController.extend(Ember.Validations.Mixin);
But when the server starts the following error appears in the console:
Cannot read property 'Mixin' of undefined
I am trying to use express-session-mongo module in one of our projects. The code is exactly the same as seen on https://github.com/mikkel/express-session-mongo but I get "Cannot read property 'BSON' of undefined" error when I launch the app. Is there a module I forgot to require?
express-session-mongo tries to use the native bson parser for mongodb and that needs to be compiled separately.
Compiling the native parser inside the express-session-mongo directory solved it for me:
cd node_modules/express-session-mongo
npm install mongodb --mongodb:native