webpack 4升級后的報錯怎么解決啊
一直報錯,該怎么解決下面這個錯誤?求指教?
Invalid configuration object. Webpack has been initialised using a configuration object that does no
t match the API schema.
?- configuration has an unknown property 'modules'. These properties are valid:
? ?object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?,
loader?, mode?, module?, name?, node?, optimization?, output?, parallelism?, performance?, plugins?,
?profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, st
ats?, target?, watch?, watchOptions? }
? ?For typos: please correct them.
? ?For loader options: webpack >= v2.0.0 no longer allows custom properties in configuration.
? ? ?Loaders should be updated to allow passing options via loader options in module.rules.
? ? ?Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the load
er:
? ? ?plugins: [
? ? ? ?new webpack.LoaderOptionsPlugin({
? ? ? ? ?// test: /\.xxx$/, // may apply this only for some modules
? ? ? ? ?options: {
? ? ? ? ? ?modules: …
? ? ? ? ?}
? ? ? ?})
? ? ?]
2020-08-13
。。。。。。。。我也遇到了
2020-07-06
同問 說說解決方案
2019-01-21
這個問題怎么解決的
2019-01-14
想問一下怎么解決的,同遇到
2019-01-11
已經(jīng)解決了。
2018-12-29
先用webpack3? ?3和4的區(qū)別還是挺大的
2018-12-28
你是做到了哪一步出現(xiàn)了這個錯 說清楚呀