simonihmig / ember-cli-bundle-analyzer

Analyze the size and contents of your Ember app's bundles
MIT License
99 stars 2 forks source link

1.0 Build Error #295

Open mastastealth opened 1 year ago

mastastealth commented 1 year ago

The previous 0.3.0 build does work for me, but trying to get 1.0.0 running I hit this:

Build Error (Bundler)

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.output has an unknown property 'clean'. These properties are valid:
   object { auxiliaryComment?, chunkCallbackName?, chunkFilename?, chunkLoadTimeout?, crossOriginLoading?, devtoolFallbackModuleFilenameTemplate?, devtoolLineToLine?, devtoolModuleFilenameTemplate?, devtoolNamespace?, filename?, futureEmitAssets?, globalObject?, hashDigest?, hashDigestLength?, hashFunction?, hashSalt?, hotUpdateChunkFilename?, hotUpdateFunction?, hotUpdateMainFilename?, jsonpFunction?, jsonpScriptType?, library?, libraryExport?, libraryTarget?, path?, pathinfo?, publicPath?, sourceMapFilename?, sourcePrefix?, strictModuleExceptionHandling?, umdNamedDefine?, webassemblyModuleFilename? }
   -> Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk

This is a large app with engines/addons, I am not using Embroider yet.

simonihmig commented 1 year ago

Which version of webpack is that? Maybe you are still on ember-auto-import v1, which still uses webpack v4 with an incompatible config?

In that case consider upgrading! 😅 But in the meantime you could add you own config to ember-auto-import that writer high quality sourcemaps for webpack v4. I don't have a working config for that at hand though!