FLASH SALE! Potongan harga gak ngotak, DISKON 40% semua program belajar. KLAIM PROMO

Error

Ditanyakan pada tanggal 16 October 2020 oleh MUHAMMAD ABDULLOH HAMZAN Edit  Hapus  Buka Kembali  Tandai 
×
TypeError: Super expression must either be null or a function
_inherits
C:/xampp/htdocs/todolist/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits.js:4

  1 | import setPrototypeOf from "./setPrototypeOf";
  2 | export default function _inherits(subClass, superClass) {
  3 |   if (typeof superClass !== "function" && superClass !== null) {
> 4 |     throw new TypeError("Super expression must either be null or a function");
  5 |   }
  6 | 
  7 |   subClass.prototype = Object.create(superClass && superClass.prototype, {
View compiled

(anonymous function)
http://192.168.56.1:3000/static/js/main.chunk.js:467:158
Module../src/components/List/TextandForm.js
C:/xampp/htdocs/todolist/src/components/List/TextandForm.js:3

  1 | import React,{component} from'react'
  2 | import {connect}from'react-redux'
> 3 | class TextandForm extends component{
  4 |     constructor(props){
  5 |         super(props)
  6 | 
View compiled

__webpack_require__
C:/xampp/htdocs/todolist/webpack/bootstrap:782

  779 | };
  780 | 
  781 | // Execute the module function
> 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));      | ^  783 | 
  784 | // Flag the module as loaded
  785 | module.l = true;
View compiled

fn
C:/xampp/htdocs/todolist/webpack/bootstrap:150

  147 | 		);
  148 | 		hotCurrentParents = [];
  149 | 	}
> 150 | 	return __webpack_require__(request);      | ^  151 | };
  152 | var ObjectFactory = function ObjectFactory(name) {
  153 | 	return {
View compiled

Module../src/components/List/List.js
http://192.168.56.1:3000/static/js/main.chunk.js:334:70
__webpack_require__
C:/xampp/htdocs/todolist/webpack/bootstrap:782

  779 | };
  780 | 
  781 | // Execute the module function
> 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));      | ^  783 | 
  784 | // Flag the module as loaded
  785 | module.l = true;
View compiled

fn
C:/xampp/htdocs/todolist/webpack/bootstrap:150

  147 | 		);
  148 | 		hotCurrentParents = [];
  149 | 	}
> 150 | 	return __webpack_require__(request);      | ^  151 | };
  152 | var ObjectFactory = function ObjectFactory(name) {
  153 | 	return {
View compiled

Module../src/App.js
http://192.168.56.1:3000/static/js/main.chunk.js:115:79
__webpack_require__
C:/xampp/htdocs/todolist/webpack/bootstrap:782

  779 | };
  780 | 
  781 | // Execute the module function
> 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));      | ^  783 | 
  784 | // Flag the module as loaded
  785 | module.l = true;
View compiled

fn
C:/xampp/htdocs/todolist/webpack/bootstrap:150

  147 | 		);
  148 | 		hotCurrentParents = [];
  149 | 	}
> 150 | 	return __webpack_require__(request);      | ^  151 | };
  152 | var ObjectFactory = function ObjectFactory(name) {
  153 | 	return {
View compiled

Module../src/index.js
http://192.168.56.1:3000/static/js/main.chunk.js:702:62
__webpack_require__
C:/xampp/htdocs/todolist/webpack/bootstrap:782

  779 | };
  780 | 
  781 | // Execute the module function
> 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));      | ^  783 | 
  784 | // Flag the module as loaded
  785 | module.l = true;
View compiled

fn
C:/xampp/htdocs/todolist/webpack/bootstrap:150

  147 | 		);
  148 | 		hotCurrentParents = [];
  149 | 	}
> 150 | 	return __webpack_require__(request);      | ^  151 | };
  152 | var ObjectFactory = function ObjectFactory(name) {
  153 | 	return {
View compiled

0
http://192.168.56.1:3000/static/js/main.chunk.js:887:18
__webpack_require__
C:/xampp/htdocs/todolist/webpack/bootstrap:782

  779 | };
  780 | 
  781 | // Execute the module function
> 782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));      | ^  783 | 
  784 | // Flag the module as loaded
  785 | module.l = true;
View compiled

checkDeferredModules
C:/xampp/htdocs/todolist/webpack/bootstrap:45

  42 | 	}
  43 | 	if(fulfilled) {
  44 | 		deferredModules.splice(i--, 1);
> 45 | 		result = __webpack_require__(__webpack_require__.s = deferredModule[0]);     | ^  46 | 	}
  47 | }
  48 | return result;
View compiled

Array.webpackJsonpCallback [as push]
C:/xampp/htdocs/todolist/webpack/bootstrap:32

  29 | 	deferredModules.push.apply(deferredModules, executeModules || []);
  30 | 
  31 | 	// run deferred modules when all chunks ready
> 32 | 	return checkDeferredModules();     | ^  33 | };
  34 | function checkDeferredModules() {
  35 | 	var result;
View compiled

1 JAWABAN / 2 KOMENTAR

User avatar
Novan Junaedi menjawab pada tanggal 16 October 2020 Jadikan Jawaban Terbaik  Edit  Hapus  Ubah ke Komentar 
halo kak coba cek kembali filenya, pastikan sudah melakukan export defalut dari file componentnya (yang terletak dipaling bawah). Contohnya:
export default Home;
Comment ..
Dikomentari pada tanggal 16 October 2020 oleh Novan Junaedi Edit  Remove 
Comment ..

udah ketemu selousinya tadi, oke makasih bro

Dikomentari pada tanggal 16 October 2020 oleh MUHAMMAD ABDULLOH HAMZAN Edit  Remove