Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Not working in react 16.7.0. ReferenceError: React is not defined #18

@sunshineo

Description

@sunshineo

push../node_modules/react-bootstrap-xeditable/es/index.js
node_modules/react-bootstrap-xeditable/es/index.js:59
56 | return Object.prototype.hasOwnProperty.call(t, e);
57 | }, s.p = "", s(s.s = 2);
58 | }([function (t, e) {

59 | t.exports = React;
60 | }, function (t, e, s) {
61 | "use strict";
62 |
View compiled
s
node_modules/react-bootstrap-xeditable/es/index.js:21
18 | l: !1,
19 | exports: {}
20 | };
21 | return t[i].call(n.exports, n, n.exports, s), n.l = !0, n.exports;
| ^ 22 | }
23 |
24 | s.m = t, s.c = e, s.d = function (t, e, i) {
View compiled
push../node_modules/react-bootstrap-xeditable/es/index.js
node_modules/react-bootstrap-xeditable/es/index.js:188
185 | Object.defineProperty(e, "__esModule", {
186 | value: !0
187 | });
188 | var a = n(s(0)),
| ^ 189 | o = n(s(1));
190 |
191 | var l =
View compiled
s
node_modules/react-bootstrap-xeditable/es/index.js:21
18 | l: !1,
19 | exports: {}
20 | };
21 | return t[i].call(n.exports, n, n.exports, s), n.l = !0, n.exports;
| ^ 22 | }
23 |
24 | s.m = t, s.c = e, s.d = function (t, e, i) {
View compiled
push../node_modules/react-bootstrap-xeditable/es/index.js
node_modules/react-bootstrap-xeditable/es/index.js:151
148 | Object.defineProperty(e, "__esModule", {
149 | value: !0
150 | });
151 | var n = i(s(3)),
| ^ 152 | a = i(s(4)),
153 | o = i(s(5));
154 | e.default = {
View compiled
s
node_modules/react-bootstrap-xeditable/es/index.js:21
18 | l: !1,
19 | exports: {}
20 | };
21 | return t[i].call(n.exports, n, n.exports, s), n.l = !0, n.exports;
| ^ 22 | }
23 |
24 | s.m = t, s.c = e, s.d = function (t, e, i) {
View compiled
(anonymous function)
node_modules/react-bootstrap-xeditable/es/index.js:57
54 | return s.d(e, "a", e), e;
55 | }, s.o = function (t, e) {
56 | return Object.prototype.hasOwnProperty.call(t, e);
57 | }, s.p = "", s(s.s = 2);
58 | }([function (t, e) {
59 | t.exports = React;
60 | }, function (t, e, s) {
View compiled
./node_modules/react-bootstrap-xeditable/es/index.js
node_modules/react-bootstrap-xeditable/es/index.js:58
55 | }, s.o = function (t, e) {
56 | return Object.prototype.hasOwnProperty.call(t, e);
57 | }, s.p = "", s(s.s = 2);
58 | }([function (t, e) {
59 | t.exports = React;
60 | }, function (t, e, s) {
61 | "use strict";
View compiled
webpack_require
/Users/sunshi/workspace/faqr/portal/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
/Users/sunshi/workspace/faqr/portal/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/views/Campaign/Details.jsx
http://localhost:3000/static/js/main.chunk.js:1669:84
webpack_require
/Users/sunshi/workspace/faqr/portal/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
/Users/sunshi/workspace/faqr/portal/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/views/Campaign/Campaign.jsx
http://localhost:3000/static/js/main.chunk.js:1563:80
webpack_require
/Users/sunshi/workspace/faqr/portal/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
/Users/sunshi/workspace/faqr/portal/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/layouts/Home/Home.jsx
http://localhost:3000/static/js/main.chunk.js:1140:81
webpack_require
/Users/sunshi/workspace/faqr/portal/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
/Users/sunshi/workspace/faqr/portal/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://localhost:3000/static/js/main.chunk.js:97:79
webpack_require
/Users/sunshi/workspace/faqr/portal/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
/Users/sunshi/workspace/faqr/portal/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://localhost:3000/static/js/main.chunk.js:1091:62
webpack_require
/Users/sunshi/workspace/faqr/portal/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
/Users/sunshi/workspace/faqr/portal/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://localhost:3000/static/js/main.chunk.js:2492:18
webpack_require
/Users/sunshi/workspace/faqr/portal/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
/Users/sunshi/workspace/faqr/portal/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]
/Users/sunshi/workspace/faqr/portal/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
(anonymous function)
http://localhost:3000/static/js/main.chunk.js:1:57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions