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

ERROR in TypeError: Cannot read property 'request' of undefined #100

Closed
webmobiles opened this issue Aug 6, 2017 · 6 comments
Closed

ERROR in TypeError: Cannot read property 'request' of undefined #100

webmobiles opened this issue Aug 6, 2017 · 6 comments

Comments

@webmobiles
Copy link

when i execute npm install i got errors

Actual Behavior

ERROR in TypeError: Cannot read property 'request' of undefined

  • ExternalModuleFactoryPlugin.js:37 handleExternals
    [pelerelay]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:37:33

  • ExternalModuleFactoryPlugin.js:46 next
    [pelerelay]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:46:8

  • ExternalModuleFactoryPlugin.js:59 handleExternals
    [pelerelay]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:59:7

  • ExternalModuleFactoryPlugin.js:79 ExternalModuleFactoryPlugin.
    [pelerelay]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:79:5

  • NormalModuleFactory.js:246 applyPluginsAsyncWaterfall
    [pelerelay]/[webpack]/lib/NormalModuleFactory.js:246:4

  • Tapable.js:196 NormalModuleFactory.applyPluginsAsyncWaterfall
    [pelerelay]/[webpack]/[tapable]/lib/Tapable.js:196:70

  • NormalModuleFactory.js:230 NormalModuleFactory.create
    [pelerelay]/[webpack]/lib/NormalModuleFactory.js:230:8

  • Compilation.js:383 Compilation._addModuleChain
    [pelerelay]/[webpack]/lib/Compilation.js:383:17

  • Compilation.js:465 Compilation.addEntry
    [pelerelay]/[webpack]/lib/Compilation.js:465:8

  • SingleEntryPlugin.js:22 SingleEntryPlugin.
    [pelerelay]/[html-webpack-plugin]/[webpack]/lib/SingleEntryPlugin.js:22:15

  • Tapable.js:229 Compiler.applyPluginsParallel
    [pelerelay]/[webpack]/[tapable]/lib/Tapable.js:229:14

  • Compiler.js:505
    [pelerelay]/[webpack]/lib/Compiler.js:505:8

  • Tapable.js:131 Compiler.applyPluginsAsyncSeries
    [pelerelay]/[webpack]/[tapable]/lib/Tapable.js:131:46

  • Compiler.js:498 Compiler.compile
    [pelerelay]/[webpack]/lib/Compiler.js:498:7

  • Compiler.js:284 Compiler.runAsChild
    [pelerelay]/[webpack]/lib/Compiler.js:284:7

  • compiler.js:70
    [pelerelay]/[html-webpack-plugin]/lib/compiler.js:70:19

@lvarayut
Copy link
Owner

lvarayut commented Aug 8, 2017

I can't reproduce the error on MacOS, I cloned the fresh project and successfully run npm install. Could you explain the steps to reproduce the error? This jantimon/html-webpack-plugin#705 would be a great resource as well.

@gammpamm
Copy link

I have the same error on Linux Mint with yarn and yarn start.
npm install and npm start working successfully.
Delete the yarn.lock, than yarn also works.

@manh-vv
Copy link

manh-vv commented Sep 6, 2017

It seem that yarn is not good here.

-- works
rm -rf node_modules
npm install
npm start

I have the same error when

yarn && yarn start

@Neitsch
Copy link
Collaborator

Neitsch commented Sep 25, 2017

Probably need to update html-webpack-plugin and yarn. Try this and let me know whether it works please :) facebook/create-react-app#2352

@webmobiles
Copy link
Author

this repo , it works very well: https://github.com/jferrettiboke/react-auth-app-example

@lvarayut
Copy link
Owner

The issue should be solved in 904d83e. Please feel free to let us know if you still experienced the problem.

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