我正在尝试使用rc-time-picker,但我得到了以下错误请检查下面的错误,我得到了什么Align.js:88 Uncaught TypeError: react__WEBPACK_IMPORTED_MODULE_0___default.a.useRef is not a function at Align (Align.js:88) at updateForwardRef (react-dom.development.js:13581) at beginWork (react-dom.development.js:14402) at p
我一直在使用MaterialUI进行React项目。最初,我使用的是react-materialize包,它起作用了。 当我安装@material-ui/core包来使用MaterialUI组件时,我得到了以下错误 Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext is not a function
at Object.<anonymous> (index.min.js:40786)
at __webpack_require__ (index.min.js
我一直在从React本地开发一个移动应用程序示例,我一直收到以下错误,但我似乎无法指出哪里出了问题。
这一行不显示任何错误,日志中的详细信息也没有指示我应该关注的任何事项。但我一直在犯这个错误。
ReferenceError: Can't find variable: useState
This error is located at:
in App (created by ExpoRoot)
in ExpoRoot (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at
我正在尝试将<Query>组件集成到我的代码中,但是我得到了以下错误。
./src/component/promos/PromosCreate.js
54:6-11 'react-admin' does not contain an export named 'Query'.
我在PromosCreate.js中的所有导入语句
import React, { Component, Fragment } from 'react';
import {
Create,
DateInput,
TextInput,
Long
我在前端使用,我得到了这个错误:
index.js:1 Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
in Login (created by Context.Consumer)
in Route (at App.js:46)
in AuthContextProvider (at App.js:37)
in Swi
我试图为Kotlin多平台项目配置一个模板,在后端运行ktor,在前端配置react,使用jetbrains团队的Kotlin类型安全包装器。要在前端和后端之间共享代码,我需要使用gradle
build.gradle.kts
val kotlin_version: String by project
val ktor_version: String by project
val logback_version: String by project
val annotations_version: String by project
val kotlin_react_version: S
我的项目正在使用react.js和next.js,我正在尝试使用react-boostrap创建一个旋转木马。但是当我尝试这个问题时,我也在我的项目中包含了next.config.js 下面是错误(the picture of the errror): ? 下面是我的代码: import React from 'react'
import Bootstrap from 'bootstrap/dist/css/bootstrap.css'
import Carousel from 'react-bootstrap/Carousel'
cl
我正在按照sendbird的教程使用react-native构建一个聊天应用,当我尝试导入sendbird sdk时,我得到了以下错误:
Unable to resolve module http from .../SendbirdSample/node_modules/sendbird/SendBird.min.js:
Unable to find this module in its module map or any of the node_modules/http and its parent directories
我删除了node_modules文件夹并再次运行npm insta
我正在VS代码中运行一个React应用程序,我使用Webpack将捆绑的webview代码生成到一个名为dist/webviews/myWebview.js的文件中。
以下是我的webview代码的结构:
我定义了一个index.js文件,其中包含根App React组件:
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
docu
我今天升级到了Xcode10.2,因为升级后我不能通过cli运行react-native run-ios:
react-native run-ios --simulator="iPhone X"
Found Xcode workspace a.xcworkspace
Could not find iPhone X simulator
Error: Could not find iPhone X simulator
at resolve (/Users/user/Documents/work/a/a-light-ui/node_modules/react-nativ
我创建了一个React应用程序,然后将Tailwind集成到其中。当我运行npm start时,我得到了这个错误。
TypeError: Object.entries(...).flatMap is not a function[![enter image description here][1]][1]
TypeError: Object.entries(...).flatMap is not a function
at flattenColorPalette (/media/rishi/142468BD2468A408/web/tailwind-react-demo/node_mo
我只是简单地在我的文件的顶部导入:
import DayPicker from 'react-day-picker'
然后我在我的控制台中得到这个错误,似乎找不到它。
Weekdays.js?f84d:23 Uncaught TypeError: Super expression must either be null or a function, not undefined
at _inherits (Weekdays.js?f84d:23)
at eval (Weekdays.js?f84d:26)
at eval (Weekdays.js?f84d
假设下面的简单示例。
我们有节点app.js在服务器端呈现一个React组件:
let http = require('http');
let React = require('react');
let ReactDOMServer = require('react-dom/server');
let Component = require('./Component.js');
http.createServer((req, res) => {
res.writeHead(200);
let markup
我正在尝试安装新的react项目,但遇到了一些问题。
现在在解决了许多问题之后,我被这个问题卡住了:
ERROR in ./script.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Plugin/Preset files are not allowed to export objects, only functions. In D:\react_project\node_modules\babel-preset-es2015\lib\index.js
在安装@babel/cor
我试图用babel-伊斯坦布尔插件为我的ReactJS项目生成一份代码覆盖报告。当我将“伊斯坦布尔”作为插件添加到我的.babelrc文件和要构建的ty中时,我会得到以下错误:
ERROR in ./src/entryPoints/App.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: /Users/kuli/Sites/persona/src/entryPoints/App.jsx: You gave us a visitor for the node type "Clas