Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

less@3.10.1 bug (actually less-loader bug) #53

Closed
kwangkim opened this issue Aug 20, 2019 · 2 comments
Closed

less@3.10.1 bug (actually less-loader bug) #53

kwangkim opened this issue Aug 20, 2019 · 2 comments

Comments

@kwangkim
Copy link

less@3.10.1 may have a bug.

Ref: less/less.js#3414
I have a following error.

ERROR in ./node_modules/gatsby-theme-apollo/src/styles.less (./node_modules/css-loader??ref--16-oneOf-1-1!./node_modules/postcss-loader/lib??postcss-3!./node_modules/less-loader/dist/cjs.js??ref--16-oneOf-1-3!./node_modules/gatsby-theme-apollo/src/styles.less)
Module build failed (from ./node_modules/less-loader/dist/cjs.js):


Class constructor FileManager cannot be invoked without 'new'
      in undefined (line undefined, column undefined)
 @ ./node_modules/gatsby-theme-apollo/src/styles.less 2:14-179 21:1-42:3 22:19-184
 @ ./node_modules/gatsby-theme-apollo/src/components/layout.js
 @ ./node_modules/gatsby-theme-apollo/index.js
 @ ./src/components/template.js
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi ./node_modules/event-source-polyfill/src/eventsource.js (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

To avoid this error, I did downgrade less to less@3.9.0 by adding

  "resolutions": {
    "less": "3.9.0"
  },

in my package.json.

@kwangkim kwangkim changed the title less@3.10.1 bug less@3.10.1 bug (actually less-loader bug) Aug 20, 2019
@kwangkim
Copy link
Author

Or you may upgrade less-loader@4.1.0 into less-loader@5.0.0.

less/less.js#3414 (comment)

@trevorblades
Copy link
Contributor

Fixed by #55! You can install gatsby-theme-apollo@latest or gatsby-theme-apollo-docs@latest to get the fix.

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

No branches or pull requests

2 participants