Theatherflix icon indicating copy to clipboard operation
Theatherflix copied to clipboard

Console.log error ...

Open felipealfonsog opened this issue 8 years ago • 13 comments

I get this: var func = _react.PropTypes.func;

program not working.

felipealfonsog avatar Mar 15 '18 07:03 felipealfonsog

trying to run a unit test on Bundle.js, but I can't really see the error. How did the error came up for you?

antzshrek avatar Mar 15 '18 17:03 antzshrek

it's not exactly the bundle... it's not webpack.... there's something I can't see ... that when you put the server to run, in the console you can see it as an error ... that error.... I can't see it ....

felipealfonsog avatar Mar 16 '18 05:03 felipealfonsog

hey it's not in the server.... it's when you run it.... and debbug it...in the browser ...

felipealfonsog avatar Mar 17 '18 04:03 felipealfonsog

Thanks to @gonzalrick and @antzshrek for keep trying .... 👍

felipealfonsog avatar Mar 17 '18 05:03 felipealfonsog

this is the thing 🔢 :/ localhost-1521269079658.log

felipealfonsog avatar Mar 17 '18 06:03 felipealfonsog

a shot.. error_log

felipealfonsog avatar Mar 17 '18 06:03 felipealfonsog

for technical purposes... I was using react-router .... routers in react ....

felipealfonsog avatar Mar 17 '18 07:03 felipealfonsog

you should do npm i create-react-class --save

rajvicky avatar Mar 17 '18 08:03 rajvicky

var React = require('react'); var Nav = require('Nav'); var createClass = require('create-react-class'); var Main = createClass({ render: function () { return (

<Nav/>

Main Component

); } }); replace into

var React = require('react'); var Nav = require('Nav');

var Main = React.createClass({ render: function () { return (

<Nav/>

Main Component

); } });

rajvicky avatar Mar 17 '18 08:03 rajvicky

I did that. It didn't work. Try to test before to post @rajvicky but sweet as that you suggested something. :)

felipealfonsog avatar Mar 18 '18 04:03 felipealfonsog

Still with the bug

felipealfonsog avatar Mar 18 '18 04:03 felipealfonsog

I fixed it, I had to code cleanly all the files... specially the webpack config and the json file for the installing modules... uff all fucked up.... now it's runnin perfectly to continue the stage of coding the UI with react. Thanks anyways guys. Just let's be careful always with the critical files. :)

felipealfonsog avatar Mar 18 '18 06:03 felipealfonsog

Thanks man

rajvicky avatar Mar 18 '18 06:03 rajvicky