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.

Unclear error message in case of Exclamation mark in project path breaking the build on Windows

See original GitHub issue

Do you want to request a feature or report a bug? bug

What is the current behavior? On Windows build if the path of the project folder contains “!”, webpack will throw error:

    ERROR in Entry module not found: Error: Can't resolve 'C:\' in 'C:\!ParentFolder\MyProjectFolder'

This bug was already reported #4906 with steps to reproduce. And it was closed, I’m opening this one to attract attention that this issue creates hard time for new users of webpack who do not know about this limitation, since webpack does not give any clue to the user about it. It took an hour of my time to figure out why it’s not working.

If the current behavior is a bug, please provide the steps to reproduce. see #4906 or:

  1. Take any project with webpack (e.g. https://github.com/pmunin/handsontable)
  2. Put (or clone) it in any folder, with the name starting from “!” (exclamation mark)
  3. run webpack build (e.g. “npm run build:umd” for repo provided at step 1)

What is the expected behavior? Webpack should at least provide a proper error message saying that user cannot have Exclamation marks in the path.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System. OS: Windows 10 x64 node v6.3.1 npm v3.10.3 webpack v2.6.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
pmunincommented, Feb 9, 2018

I guess the reason for this restriction is module loader syntax (https://webpack.js.org/loaders/). E.g.: import Styles from 'style-loader!css-loader?modules!./styles.css'; Not the best design decision, but at least they could provide a message for that so people don’t spend a day for finding this out.

2reactions
simonl65commented, Feb 9, 2018

+1

I just lost hours of work trying to figure why nuxt wouldn’t work only to find it was an exclamation mark in my Windows path. I do this all the time - it places my folders higher up the folder list. Please would you consider removing this restriction?

Cheers, Simon

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the reason for a red exclamation mark next to my ...
It means there is a problem with the build path in your project. If it is an android project then it ... It...
Read more >
Yellow exclamation mark despite being present - MSDN
The yellow exclamation mark often caused by the target framework of destination project and the version of references was different, or this ...
Read more >
Fix list for Rational ClearCase - IBM
This document contains a complete listing of releases, refreshes, fix packs and interim fixes sorted by version for IBM® Rational ClearCase.
Read more >
Zig Language Reference
Introduction §. Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Read more >
3. Using GHCi — Glasgow Haskell Compiler 9.4.4 User's Guide
To always compile everything to object code and never use the interpreter ... The sprint function adds an exclamation mark at the end...
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