인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

juston's profile image
juston

asked

Vue.js - Django Integration Web Programming (Practical)

Copy the view folder

npm run build 문제

Written on

·

389

0

npm run serve 를 돌렸더니
아래 와 같이  오류가 뜨고 dist폴더만 삭제가 되네요. 어떻게 해야 하죠?
 
 ERROR  WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using 
a configuration object that does not match the API schema.
 - configuration has an unknown property 'Plugins'. 
These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry?, externals?, infrastructureLogging?, loader?, mode?, module?, name?, 
node?, optimization?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, serve?, stats?, 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 loader: 
     plugins: [
       new webpack.LoaderOptionsPlugin({
         // test: /\.xxx$/, // may apply this only for some modules
         options: {
           Plugins: …
         }
       })
     ]
djangovuejsVuetify

Answer 1

0

bestdjango님의 프로필 이미지
bestdjango
Instructor

안녕하세요. 독자님.

에러 메시지에 아래 내용이 있군요.

- configuration has an unknown property 'Plugins'.

Plugins 가 아니라 plugins, 오타가 아닐까요 ?

 

참고로, VS Code 에서 두개 파일을 비교할 수 있습니다.

두개 파일 선택 후 > 마우스 우측 클릭 > Compare Selected 클릭. 하면 됩니다.

문제가 있을 때 제공된 소스와 비교해보면 도움이 될 듯 합니다.

감사합니다.

juston's profile image
juston

asked

Ask a question