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

3.11: @import (less) broken #3474

Closed
Diablohu opened this issue Feb 10, 2020 · 4 comments
Closed

3.11: @import (less) broken #3474

Diablohu opened this issue Feb 10, 2020 · 4 comments

Comments

@Diablohu
Copy link

im my less code:

@import (less) "~normalize.css/normalize.css";

before 3.11: import node_modules/normalize.css/normalize.css as less code into my less file
after 3.11: Less try to find file node_modules/normalize.css/normalize.css.less and because this file does noe exist, building failed

Here's the error info from Webpack

@import (less) "~normalize.css/normalize.css";
^
Can't resolve 'normalize.css/normalize.css.less' in 'L:\Projects\koot\master\test\projects\simple\src'
      in L:\Projects\koot\master\test\projects\simple\src\critical.less (line 1, column 0)
    at L:\Projects\koot\master\node_modules\webpack\lib\NormalModule.js:316:20
    at L:\Projects\koot\master\node_modules\loader-runner\lib\LoaderRunner.js:367:11
    at L:\Projects\koot\master\node_modules\loader-runner\lib\LoaderRunner.js:233:18
    at context.callback (L:\Projects\koot\master\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
 @ ./src/critical.js 9:2-28
@turbidwater
Copy link

We're seeing this issue too. Changelogs haven't been updated yet, so no word on if there was a syntax or functionality change.

@martinpitt
Copy link

This broke 3 of our projects as well. We dropped the markers, I suppose if a file really uses less syntax, it should be called *.less. So it's mostly a little inconvenience.

@matthew-dean
Copy link
Member

Please see if this is fixed on 3.11.1

@Diablohu
Copy link
Author

3.11.1 solved this problem for me
thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants