serverless-bundle: Webpack error when using v5.0.0
`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, // }, // },
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 2
- Comments: 20 (7 by maintainers)
I totally gave up on updating this library. It does not work properly since 5.0.
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.
hey, so, just found this project. seems like it’s currently broken? nobody answered this so question either…
I’ll just downgrade to 4.x I guess. It’s a shame that this simple webpack flag seems to be impossible to add.