title: Why does building a library using Vue CLI cause an error?
body: <p>Immediately after creating the application (without making any changes), I start building the library, according to the official documentation: <a href="https://cli.vuejs.org/guide/build-targets.html#app" rel="nofollow noreferrer">https://cli.vuejs.org/guide/build-targets.html#app</a></p>
  
  <pre><code>npm run build --target lib --name myLib 'src/components/HelloWorld.vue'
  </code></pre>
  
  <p>As a result, I get the following error: Entry module not found: Error: Can't resolve 'C:\domains\vue-hello-world\lib' in 'C:\domains\vue-hello-world'</p>
  
  <p><a href="https://i.stack.imgur.com/MV5Yf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MV5Yf.jpg" alt="enter image description here"></a></p>
  
  <p>I also tried to build the library with this command:</p>
  
  <pre><code>vue-cli-service build --target lib --name myLib 'src/components/HelloWorld.vue'
  </code></pre>
  
  <p>And got another error:</p>
  
  <p><a href="https://i.stack.imgur.com/Ph05M.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ph05M.jpg" alt="enter image description here"></a></p>