4-2 11:25秒處 babel的配置我按照老師寫的報錯
老師是這樣寫的
但是報錯了
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
?- configuration.module has an unknown property 'loaders'. These properties are valid:
? ?object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
? ?-> Options affecting the normal modules (`NormalModuleFactory`).
后來看到官網是類似這樣寫的
2018-03-12
webpack版本不一樣。老師那個版本是老古董了