question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'request' of undefined

See original GitHub issue

Hi. I 'm having problem running the create-react-app.

Here is the error I’ve got. ` TypeError: Cannot read property ‘request’ of undefined

  • ExternalModuleFactoryPlugin.js:37 handleExternals [www-react-client]/[webpack]/lib/ExternalModuleFactoryPlugin.js:37:33

  • ExternalModuleFactoryPlugin.js:46 next [www-react-client]/[webpack]/lib/ExternalModuleFactoryPlugin.js:46:8

  • ExternalModuleFactoryPlugin.js:59 handleExternals [www-react-client]/[webpack]/lib/ExternalModuleFactoryPlugin.js:59:7

  • ExternalModuleFactoryPlugin.js:79 ExternalModuleFactoryPlugin.<anonymous> [www-react-client]/[webpack]/lib/ExternalModuleFactoryPlugin.js:79:5

  • NormalModuleFactory.js:246 applyPluginsAsyncWaterfall [www-react-client]/[react-scripts]/[webpack]/lib/NormalModuleFactory.js:246:4

  • Tapable.js:204 [www-react-client]/[react-scripts]/[tapable]/lib/Tapable.js:204:11

  • IgnorePlugin.js:56 IgnorePlugin.checkIgnore [www-react-client]/[react-scripts]/[webpack]/lib/IgnorePlugin.js:56:10

  • Tapable.js:208 NormalModuleFactory.applyPluginsAsyncWaterfall [www-react-client]/[react-scripts]/[tapable]/lib/Tapable.js:208:13

  • NormalModuleFactory.js:230 NormalModuleFactory.create [www-react-client]/[react-scripts]/[webpack]/lib/NormalModuleFactory.js:230:8

  • Compilation.js:382 Compilation._addModuleChain [www-react-client]/[react-scripts]/[webpack]/lib/Compilation.js:382:17

  • Compilation.js:464 Compilation.addEntry [www-react-client]/[react-scripts]/[webpack]/lib/Compilation.js:464:8

  • SingleEntryPlugin.js:22 SingleEntryPlugin.<anonymous> [www-react-client]/[webpack]/lib/SingleEntryPlugin.js:22:15

  • Tapable.js:229 Compiler.applyPluginsParallel [www-react-client]/[react-scripts]/[tapable]/lib/Tapable.js:229:14

  • Compiler.js:488 [www-react-client]/[react-scripts]/[webpack]/lib/Compiler.js:488:8

  • Tapable.js:131 Compiler.applyPluginsAsyncSeries [www-react-client]/[react-scripts]/[tapable]/lib/Tapable.js:131:46

  • Compiler.js:481 Compiler.compile [www-react-client]/[react-scripts]/[webpack]/lib/Compiler.js:481:7 `

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
danieltottcommented, May 24, 2017

OK - found the issue for me. I had a devDependency (an older version of kadira/storybook) that was depending on an old version of webpack 1.4.x - and that was what was being installed, not 2.5.x. I yarn removed the storybook package, yarn install and yarn start worked like a charm.

5reactions
FredrikNorencommented, May 29, 2017

Seems like the order in package.json matters too. Putting storybook last in the dev dependencies seems to fix it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Error: Cannot read property 'request' of undefined
Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >
Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >
How to Avoid Getting 'Cannot read property of undefined' in ...
This error occurs when you try to read or access a property on an object that is undefined . Another common case that...
Read more >
Resolving the JavaScript Promise Error "TypeError: Cannot ...
TypeError - Cannot read property 'then' of undefined is thrown when the caller is expecting a Promise to be returned and instead receives ......
Read more >
TypeError: Cannot read property 'status' of undefined
TypeError : Cannot read property 'status' of undefined · npm i @codahq/packs-sdk -g · coda init · Copied the pack.ts content from this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found