kazupon / vue-cli-plugin-p11n

:electric_plug: Vue CLI 3 plugin to pluginize your Vue project
MIT License
113 stars 13 forks source link

When testing invoke keeps saying project has no generator. #15

Closed EvanBurbidge closed 5 years ago

EvanBurbidge commented 5 years ago

I'm using the way you test this plugin as a means to test my own new plugin, one thing I keep finding is that it's giving me an error when I hit the invoke method inside the create methods saying that my project doesn't have a generator although I have a generator folder with an index.js inside it. Any ideas on what may be going on with this?


  console.log test/helpers.js:26
  /frontend/packages/vue-cli-plugin-convertor/test/e2e/projects/test-project

  console.error node_modules/@vue/cli-shared-utils/lib/logger.js:49
     ERROR  Error: Plugin @namespace/vue-cli-plugin-convertor does not have a generator.

  console.error node_modules/@vue/cli-shared-utils/lib/logger.js:52
    Error: Plugin @namespace/vue-cli-plugin-convertor does not have a generator.
        at invoke (/frontend/packages/vue-cli-plugin-convertor/node_modules/@vue/cli/lib/invoke.js:81:11)
        at Object.<anonymous>.module.exports.args (/frontend/packages/vue-cli-plugin-convertor/node_modules/@vue/cli/lib/invoke.js:188:10)
        at invoke (frontend/packages/vue-cli-plugin-convertor/test/helpers.js:27:9)

 RUNS  test/e2e/convertor.spec.js

*note i've update paths to avoid exposing company names and such

Update:

This appears to be an error with namespaced projects. e.g. @namespace/projectName. Will update further soon.

Update 2: This is an error with the loadModules method from @vue/cli-shared-utils, this ticket can be closed.