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.

The getting-started tutorial doesn't work on windows

See original GitHub issue

I’m new to webpack 1.9.11 and are following the getting-started tutorial. Unfortunately I can only get to Binding loaders, where I get the following error:

C:\Users\dotnet\Projects\playground\webpack_tut (master)
λ webpack ./entry.js bundle.js --module-bind 'css=style!css'
Hash: 3fd1ef8aa00068f12535
Version: webpack 1.9.11
Time: 52ms
    Asset     Size  Chunks             Chunk Names
bundle.js  1.72 kB       0  [emitted]  main
   [0] ./entry.js 65 bytes {0} [built] [1 error]
   [1] ./style.css 0 bytes [built] [failed]
   [2] ./content.js 47 bytes {0} [built]

ERROR in ./style.css
Module parse failed: C:\Users\dotnet\Projects\playground\webpack_tut\style.css Line 1: Unexpected token {
You may need an appropriate loader to handle this file type.
| body {
|     background: yellow;
| }
 @ ./entry.js 1:0-22

My entry.js:

require("./style.css");
document.write(require("./content.js"));

My style.css:

body {
    background: yellow;
}

npm list --depth=0:

C:\Users\dotnet\Projects\playground\webpack_tut
├── css-loader@0.14.5
├── node-libs-browser@0.5.2
└── style-loader@0.12.3

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:34 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
agundermanncommented, Jun 29, 2015

Try double quotes

webpack ./entry.js bundle.js --module-bind "css=style!css"

2reactions
dbashfordcommented, Sep 8, 2015

+1 on single quotes. May be worth updating the docs?

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

unclear instructions, hard to start, where to create Dockerfile ...
I installed Docker Desktop in Windows 10 and went through the Getting Started tutorial/container. The instructions were fairly clear to me ...
Read more >
First time Docker user, started with the tutorial, the tutorial is ...
So I've installed it on Windows and tried to do the tutorial. Well, the tutorial doesn't work, I have no idea why not....
Read more >
Get Started with Windows 11 and Windows 10
12 Things You Should Do Before Installing A Windows Feature Update New! Tutorial: The Window 7 User's Guide to Getting the Most Out...
Read more >
Is there something missing in docker getting-started tutorial?
TL;DR;. Run the command docker-compose down --volumes. to remove any problematic volume created during the tutorial early phases, then, ...
Read more >
A Docker Tutorial for Beginners
Until a few releases ago, running Docker on OSX and Windows was quite a hassle. ... To get started, let's run the following...
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