Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack error when using v5.0.0

See original GitHub issue

`WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.module.rules[1].resolve has an unknown property ‘fullySpecified’. These properties are valid: object { alias?, aliasFields?, cachePredicate?, cacheWithContext?, concord?, descriptionFiles?, enforceExtension?, enforceModuleExtension?, extensions?, fileSystem?, ignoreRootsErrors?, mainFields?, mainFiles?, moduleExtensions?, modules?, plugins?, preferAbsolute?, resolver?, roots?, symlinks?, unsafeCache?, useSyncFileSystemCalls? }`

serverless offline won’t start because of this error

My quick fix was to comment out the following inside src/webpack.config.js What would be a final fix? Thanks

// { // test: /\.mjs$/, // include: /node_modules/, // type: "javascript/auto", // resolve: { // fullySpecified: false, // }, // },

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

rodrigogscommented, Dec 13, 2021

I totally gave up on updating this library. It does not work properly since 5.0.

berniercommented, Aug 27, 2021

Went back to v4.4.0 due to this issue. Even if I can make it work locally using the hack mentioned above, the CI/CD doesn’t like it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

To v5 from v4 - webpack
This guide aims to help you migrating to webpack 5 when using webpack directly. ... There should be a validation error with a...
Read more >
How to Fix the Error Error:error:0308010C:digital envelope ...
In v5.0.0 of Create React App, the version of the cached Webpack modules and chunks gets generated using a stringified object of environment...
Read more >
Webpack v5 builds with a module parsing error - Stack Overflow
I'm currently migrating my project from Webpack v4 to v5 and my build finishes with an Error @My-MacBook-Pro seacat-webui % node ...
Read more >
ModuleNotFoundError After Update to babylon 5.0.0 alpha
Hi, gens I got this webpack error after the update from v4.2 to v5.0 ModuleNotFoundError: Module not found: Error: Can't resolve '.
Read more >
webpack/webpack - Gitter
Ingwie@Ingwies-Macbook-Pro.local ~/W/BIRD3 $ npm cache clean -f npm info it worked if it ends with ok npm info using npm@3.3.6 npm info using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found