Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #564
Closed
Open
Issue created Sep 03, 2016 by Administrator@rootContributor

Updating from 0.2.3 to 0.4.0 Html Webpack Plugin - ReferenceError: window is not defined

Created by: FranciscoGileno

I tried to update to 0.4.0 following the changelog, and got this after "npm start"

Have I done something wrong?

OBS: I am using Windows 10 and Git Bash as my Terminal.


Html Webpack Plugin: ReferenceError: window is not defined

  • addStyles.js?:14 eval C:\Projects\cantina-self-service\control-panel//react-scripts//style-loader/addStyles.js?:14:30
  • addStyles.js?:9 eval C:\Projects\cantina-self-service\control-panel//react-scripts//style-loader/addStyles.js?:9:47
  • addStyles.js?:31 module.exports C:\Projects\cantina-self-service\control-panel//react-scripts//style-loader/addStyles.js?:31:68
  • material.css?:7 eval C:\Projects\cantina-self-service\control-panel/~/react-mdl/extra/material.css?:7:93
  • index.html:561 Object. C:/Projects/cantina-self-service/control-panel/index.html:561:2
  • index.html:519 webpack_require C:/Projects/cantina-self-service/control-panel/index.html:519:30
  • index.html:50 fn C:/Projects/cantina-self-service/control-panel/index.html:50:20
  • loader.js:1 eval C:\Projects\cantina-self-service\control-panel/index.html?.//react-scripts//html-webpack-plugin/lib/loader.j s:1:367
  • index.html:552 Object. C:/Projects/cantina-self-service/control-panel/index.html:552:2
  • index.html:519 webpack_require C:/Projects/cantina-self-service/control-panel/index.html:519:30
  • From previous event:
  • index.js:108 Compiler. [control-panel]/[react-scripts]/[html-webpack-plugin]/index.js:108:8
  • Tapable.js:71 Compiler.applyPluginsAsync [control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:71:13
  • Compiler.js:226 Compiler.emitAssets [control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:226:7
  • Compiler.js:54 Watching. [control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:54:18
  • Compiler.js:403 [control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:403:12
  • Tapable.js:67 Compiler.next [control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:67:11
  • CachePlugin.js:40 Compiler. [control-panel]/[react-scripts]/[webpack]/lib/CachePlugin.js:40:4
  • Tapable.js:71 Compiler.applyPluginsAsync [control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:71:13
  • Compiler.js:400 Compiler. [control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:400:9
  • Compilation.js:577 Compilation. [control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:577:13
  • Tapable.js:60 Compilation.applyPluginsAsync [control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
  • Compilation.js:572 Compilation. [control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:572:10
  • Tapable.js:60 Compilation.applyPluginsAsync [control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
  • Compilation.js:567 Compilation. [control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:567:9
  • Tapable.js:60 Compilation.applyPluginsAsync [control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
  • Compilation.js:563 Compilation. [control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:563:8
  • Tapable.js:60 Compilation.applyPluginsAsync [control-panel]/[react-scripts]/[tapable]/lib/Tapable.js:60:69
  • Compilation.js:525 Compilation.seal [control-panel]/[react-scripts]/[webpack]/lib/Compilation.js:525:7
  • Compiler.js:397 Compiler. [control-panel]/[react-scripts]/[webpack]/lib/Compiler.js:397:15
Assignee
Assign to
Time tracking