Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'call' of undefined #33

Closed
idrismakesgames opened this issue Apr 10, 2019 · 5 comments
Closed

Comments

@idrismakesgames
Copy link

I thought I made a mistake so I wiped my folder and cloned this repo again, switch to branch feature/0312-webpack-dev-server ran yarn install and then ran yarn dev.

no errors in the terminal, but on the page in the console nothing is happening and the following error appears.

Uncaught TypeError: Cannot read property 'call' of undefined at __webpack_require__ (index.js:20) at eval (index.js:2) at Object../src/index.js (index.js:357) at __webpack_require__ (index.js:20) at eval (webpack:///multi_(:8080/webpack)-dev-server/client?:2:18) at Object.0 (index.js:368) at __webpack_require__ (index.js:20) at index.js:69 at index.js:72

Really hope you can help, as I desperately want to follow along, so far this course has been a life saver.

@notdrone
Copy link

removing all ^ from the package.json file and then doing npm i fixed the error for me.

@sidouglas
Copy link

sidouglas commented May 28, 2019

Course was published June 29, 2018.
Webpack is fickle, and this course no longer works at this step.
( I ran into the exact same thing this evening )

I did:

yarn upgrade-interactive

Check everything - upgrade everything and re-run the dev server.

@1Marc
Copy link
Collaborator

1Marc commented May 29, 2019

I will have to upgrade and test out all of the branches at some point -- thanks all for pointing me in the right direction.

@sojungko
Copy link

Had the same issue. Upgrading webpack and webpack-dev-server fixed it for me.

    "webpack": "^4.33.0",
    "webpack-dev-server": "^3.7.1",

@1Marc
Copy link
Collaborator

1Marc commented Aug 5, 2019

Sorry for the delay, but the dependencies for the feature/0312-webpack-dev-server branch have been updated! 9a7defb

@1Marc 1Marc closed this as completed Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants