Skip to content

HtmlWebpackPlugin Error: TypeError: Cannot read property 'request' of undefined #596

Closed

Description

@ltwaia
  • ExternalModuleFactoryPlugin.js:37 handleExternals
    [webpack-demos]/[webpack]/lib/ExternalModuleFactoryPlugin.js:37:33

  • ExternalModuleFactoryPlugin.js:46 next
    [webpack-demos]/[webpack]/lib/ExternalModuleFactoryPlugin.js:46:8

  • ExternalModuleFactoryPlugin.js:59 handleExternals
    [webpack-demos]/[webpack]/lib/ExternalModuleFactoryPlugin.js:59:7

  • ExternalModuleFactoryPlugin.js:79 ExternalModuleFactoryPlugin.
    [webpack-demos]/[webpack]/lib/ExternalModuleFactoryPlugin.js:79:5

  • NormalModuleFactory.js:233
    [lib]/[webpack]/lib/NormalModuleFactory.js:233:3

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

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

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

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

  • SingleEntryPlugin.js:22 SingleEntryPlugin.
    [webpack-demos]/[webpack]/lib/SingleEntryPlugin.js:22:15

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

  • Compiler.js:469
    [lib]/[webpack]/lib/Compiler.js:469:8

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

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

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

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

Activity

  1. ltwaia commented on Feb 21, 2017

    @ltwaia
    Author

    cli webpack version is not fit for require webpack

  2. wupengFEX commented on Apr 22, 2017

    @wupengFEX

    @ltwaia How to solve it?

  3. whitetrefoil commented on Apr 24, 2017

    @whitetrefoil

    @wupengFEX I just met the same error and remove node_modules/ then re-install it did help.

  4. huangyunbo commented on Apr 25, 2017

    @huangyunbo

    @wupengFEX Ensure project file package.json webpack version "^2.x"

    把项目里的packckage.json webpack指定版本换成最新的或者2.x或者2.4.1,再重新npm install webpack --save

  5. lock commented on May 31, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions