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

Class constructor FileManager cannot be invoked without 'new'. #300

Closed
sadianliaoer opened this issue Aug 18, 2019 · 2 comments
Closed

Class constructor FileManager cannot be invoked without 'new'. #300

sadianliaoer opened this issue Aug 18, 2019 · 2 comments

Comments

@sadianliaoer
Copy link

  • Operating System:
  • Node Version: 10.0.0
  • NPM Version: 6.0.0
  • webpack Version: 3.0.0
  • less-loader Version: 5.0.0

Expected Behavior

Actual Behavior

Code

  // webpack.config.js
  // If your code blocks are over 20 lines, please paste a link to a gist
  // (https://gist.github.com).
  // additional code, HEY YO remove this block if you don't need it

How Do We Reproduce?

 ERROR in ./src/pages/score/components/current/no-join/index.less
Module build failed (from ./node_modules/_mini-css-extract-plugin@0.5.0@mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js):


Class constructor FileManager cannot be invoked without 'new'
      in undefined (line undefined, column undefined)
    at runLoaders (/home/admin/build/node_modules/_webpack@4.39.2@webpack/lib/NormalModule.js:313:20)
    at /home/admin/build/node_modules/_loader-runner@2.4.0@loader-runner/lib/LoaderRunner.js:367:11
    at /home/admin/build/node_modules/_loader-runner@2.4.0@loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/home/admin/build/node_modules/_loader-runner@2.4.0@loader-runner/lib/LoaderRunner.js:111:13)
@sadianliaoer
Copy link
Author

This is an issue with an older version of less-loader, not Less, which did not inherit the Less filemanager correctly. less-loader 5.0 does. See

@abenhamdine
Copy link

This error occurs with less-loader <5.0 (see the stack trace you have paste, which shows less-loader@4.1.0), not with less-loader 5.0.0

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

3 participants