React Invariant Violation: Minified React error #130

React Invariant Violation: Minified React error #130_第1张图片首先要检查index.js里面的代码注释是否有问题,一定要保证打包的代码放开,运行的代码注释调,

代码如下:

// 下方为打包时的代码
import React from 'react';
import ComponentIn from './pages/ComponentIn';
import { scrollToEnd } from './assets/js/common.js'
export default function AlimeComponentCustomCard ({ data, ctx, meta }) {
	scrollToEnd(ctx)
	return (
		
	);
}


//下方为测试数据
// import ReactDom from 'react-dom';
// import ComponentIn from './pages/ComponentIn';
// import {
// 	  TabCards// tab栏切换
// } from './pages/ComponentInTestJson';
// localStorage.setItem('ctc_bot_user',JSON.stringify({name:'赵',phone:'18999999',authSelf:'dfdfsds'}))
// const ctx = {
// 	postMessage: (res) => {
// 		console.log(res)
// 	}, appendMessage: (res) => {
// 		console.log(res)
// 	}
// }
// ReactDom.render(
// 	(),
// 	document.getElementById('root')
// );

 

你可能感兴趣的:(react.js,javascript,前端)