Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer fails when main.js is not the entry point #1

Open
nerdoc opened this issue Jan 3, 2021 · 0 comments
Open

installer fails when main.js is not the entry point #1

nerdoc opened this issue Jan 3, 2021 · 0 comments

Comments

@nerdoc
Copy link
Member

nerdoc commented Jan 3, 2021

per default, vue uses src/main.js as entry point. Some packages don't follow that example - if you e.g. use index.js, vue-extensions doesn't find your file and can't modify it, and so the installer crashes.

Error: ENOENT: no such file or directory, open 'src/main.js'
    at Object.openSync (fs.js:476:3)
    at Object.readFileSync (fs.js:377:35)
    at /home/christian/tmp/django-vue-parcel/ui/node_modules/vue-cli-plugin-extensions/generator/index.js:29:28
    at runGenerator (/home/christian/.config/yarn/global/node_modules/@vue/cli/lib/invoke.js:132:13)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async invoke (/home/christian/.config/yarn/global/node_modules/@vue/cli/lib/invoke.js:92:3)
@nerdoc nerdoc transferred this issue from nerdocs/vue-extensions Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant