Skip to content

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

Open
@nerdoc

Description

@nerdoc
Member

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nerdoc

        Issue actions

          installer fails when main.js is not the entry point · Issue #1 · nerdocs/vue-cli-plugin-extensions