Skip to content
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

loaderUtils.parseQuery() : if there is a # in dir name > webpack : failed to compile (macos) #4872

Closed
s-f-a-g opened this issue Feb 21, 2017 · 6 comments
Labels

Comments

@s-f-a-g
Copy link

s-f-a-g commented Feb 21, 2017

Please provide us with the following information:

OS?

Mac OSX (El Capitan)

Versions.

@angular/cli: 1.0.0-beta.32.3
node: 7.4.0
os: darwin x64
@angular/common: 2.4.7
@angular/compiler: 2.4.7
@angular/core: 2.4.7
@angular/flex-layout: 2.0.0-beta.5
@angular/forms: 2.4.7
@angular/http: 2.4.7
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 2.4.7
@angular/platform-browser-dynamic: 2.4.7
@angular/router: 3.4.7
@angular/cli: 1.0.0-beta.32.3
@angular/compiler-cli: 2.4.7

Repro steps.

You can do it with angular-cli.
cd #FOLDER
ng new project-with-diese
cd project-with-diese
ng serve

The log given by the failure.

[...] script-loader/addScript.js(node:95633) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see webpack/loader-utils#56
[...] ERROR in Could not resolve "/Users/me/" from "/Users/me/".
Last line : "webpack: Failed to compile."

Mention any other details that might be useful.

related to #4869

@s-f-a-g
Copy link
Author

s-f-a-g commented Feb 21, 2017

Just to mention that the folder with # is my root folder for sources for years now...
#PROJECTS/project-1
#PROJECTS/project-2
etc, etc...
and the error is very new.

@filipesilva
Copy link
Contributor

Hm. Well this sucks. We'll see what we can do.

@filipesilva filipesilva added command: build type: bug/fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Mar 13, 2017
@filipesilva filipesilva self-assigned this Mar 13, 2017
@Nandan108
Copy link

Similar error... or rather warning, in my case.

OS:

Ubuntu

Version:

@angular/cli: 1.0.2
node: 7.7.3
os: linux x64
@angular/animations: 4.1.1
@angular/cli: 1.0.2
@angular/common: 4.1.1
@angular/compiler: 4.1.1
@angular/compiler-cli: 4.1.1
@angular/core: 4.1.1
@angular/forms: 4.1.1
@angular/http: 4.1.1
@angular/platform-browser: 4.1.1
@angular/platform-browser-dynamic: 4.1.1
@angular/platform-server: 4.1.1
@angular/router: 4.1.1

I have no # in my path, yet a very similar warning is emitted upon build (in any mode, including -aot and/or -prod):

10% building modules 3/4 modules 1 active
.../modules/catalogue/src/style/app.scss(node:26741) DeprecationWarning:
loaderUtils.parseQuery() received a non-string value which can be problematic,
see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.

Could this be caused by the fact that my node_modules/ is behind a symlink?
The build finishes correctly regardless.

@filipesilva filipesilva added freq1: low Only reported by a handful of users who observe it rarely severity1: confusing and removed help wanted P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Feb 1, 2018
@mgechev
Copy link
Member

mgechev commented Dec 18, 2018

Can you still reproduce this issue?

@mgechev
Copy link
Member

mgechev commented Dec 21, 2018

Closing the issue due to inactivity. If the problem still exists in the latest version of the CLI, please open a new issue following the template and providing a minimal demo where we can reproduce it. Thanks! :-)

@mgechev mgechev closed this as completed Dec 21, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants