ERROR-1:React
2015-11-24 14:11
330 查看
原文链接:https://www.geek-share.com/detail/2659294519.html
「版本」React0.142
「环境」chrome浏览器报错:
「信息」Uncaught Error: Invariant Violation: _registerComponent(...): Target container is not a DOM element.
解决办法:
「原因」这个错误是在创建ReactDOM.render()时,找不到浏览器的DOM
「解决」将html文件中的<script>引用放到下面,即可解决
转载于:https://www.geek-share.com/detail/2659294519.html
相关文章推荐
- React开发问题记录--(in promise) TypeError: Cannot read property 'data' of undefined
- ERROR-1:React
- React Native error: Raw “ ” must be wrapped in an explicit <Text> Component
- dva -react TypeError: root.findRouters(...).getRouterInfo is not a function
- 【原】react-native start EACCESS error for setup_env.sh
- ios react native 手动配置 realm 使用cocoapods 会编译报错 fatal error: 'React/RCTBridge.h' file not found
- error: bundling: UnableToResolveError: Unable to resolve module `react/lib/ReactDebugCurrentFrame`
- react native Exception in thread "main" java.util.zip.ZipException: error in opening zip file
- [React Error]: Target container is not a DOM element
- react-native run-android 提示 java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlug
- react-native android 报错 error calling Appregistry.runApplication
- react-redux升级到7.0.x后报错"TypeError: Object(...) is not a function"
- windows平台react-native && android安装错误Error EPERM
- react-native 升级.Error: While resolving module react-native-vector-icons
- npm安装create-react-app出现“Error: EACCES: permission denied”的解决办法
- react-native运行样例报错:Error watching file for changes: EMFILE
- Gulp watch error Error: watch /home/react-mobile/stylus/ ENOSPC
- React Native多图层View,实现empty,content,error,loading等界面无缝跳转
- React Native iOS 之error babelrc.stage
- React创建项目报错 Error: EACCES: permission denied, open '/Users/****/.babel.json'