Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Dependency was not found ~entry in ./demo/main.js #33

Open
mszkb opened this issue Jul 18, 2019 · 3 comments
Open

Dependency was not found ~entry in ./demo/main.js #33

mszkb opened this issue Jul 18, 2019 · 3 comments
Labels
Type: Question Further information is requested

Comments

@mszkb
Copy link
Contributor

mszkb commented Jul 18, 2019

In demo/main.js there is import App from '~entry'.
When starting the demo script, it produces an error dependency was not found.

Steps to reproduce:
Create a new project with vue-cli
vue create my-new-project
Add p11n
vue add p11n
and start the demo
yarn demo

Solution:
Change '~entry' to './Demo'

@mszkb mszkb changed the title demo/main.js ~entry not found Dependency was not found ~entry in ./demo/main.js Jul 18, 2019
@mszkb
Copy link
Contributor Author

mszkb commented Jul 18, 2019

In lib/demo/plugin.js there is a webpack config line 11
.set('~entry', path.resolve(path.join(context, './demo', entry)))

Maybe something went wrong there.

@fangbinwei
Copy link

It seems that we should run yarn demo Demo.vue or npx vue-cli-service demo Demo.vue

command vue-cli-service demo needs entry option

@kazupon kazupon added the Type: Question Further information is requested label Mar 27, 2020
@mhirsch
Copy link

mhirsch commented Apr 23, 2020

Am I understanding correctly that to work with npm the demo property in package.json script ought to look like

"demo": "vue-cli-service demo ./Demo.vue",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants