-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
webpack generates error when run in a directory starting with an exclamation sign #6742
Comments
Simply remove exclamation sign from your directory name because it's a part of loader syntax:
|
As written in my problem description I do obviously undertsand that the exclamation sign is the problem but:p it took me several hours to find out and I wanted to keep others from falling into the same trap.
|
@doberkofler |
@chengluyu I see. This actually strongly suggests that webpack should really check for an unsupported project directory name and give a proper error message. |
We could add a schema validation error when somebody passes an path with This could be added to the custom absolutePath schema validator in |
I can have a look at it |
@sokra Unfortunately I do not have the needed webpack knowledge to do a PR myself. |
Thank you all! |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Using webpack in a directory start starts with
!
, generates errors but works as expected when the directory does not start with!
If the current behavior is a bug, please provide the steps to reproduce.
just run
webpack --progress --display-error-details
in a directory that starts with an exclamation sign.minimal reproduceable repo:
https://github.com/doberkofler/webpack_issue_6742
webpack.config.js:
What is the expected behavior?
webpack should not fail or at least report that it cannot be used in certain directories.
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.
node: v8.10.0
webpack: 3.11.0
The text was updated successfully, but these errors were encountered: