shopware-pwa: npx @shopware-pwa/cli init fails because of TypeError: Cannot set property 'lint' of undefined

Describe the bug

When running npx @shopware-pwa/cli init I cannot complete the initialization process because of a type error.

Steps to reproduce

  • Run npx @shopware-pwa/cli init
  • Paste Shopware instance credentials
  • Select latest stable (recommended)
Which version you'd like to use: · latest stable (recommended)
✔ Preparing Nuxt project
⠦ Updating configuration for option: latest stable (recommended)/Users/thomasnohl/.npm/_npx/7892/lib/node_modules/@shopware-pwa/cli/node_modules/gluegun/build/index.js:13
    throw up;
    ^

TypeError: Cannot set property 'lint' of undefined
    at /Users/thomasnohl/.npm/_npx/7892/lib/node_modules/@shopware-pwa/cli/build/extensions/nuxt-extension.js:164:49
    at Object.<anonymous> (/Users/thomasnohl/.npm/_npx/7892/lib/node_modules/@shopware-pwa/cli/node_modules/gluegun/build/toolbox/patching-tools.js:91:39)
    at step (/Users/thomasnohl/.npm/_npx/7892/lib/node_modules/@shopware-pwa/cli/node_modules/gluegun/build/toolbox/patching-tools.js:33:23)
    at Object.next (/Users/thomasnohl/.npm/_npx/7892/lib/node_modules/@shopware-pwa/cli/node_modules/gluegun/build/toolbox/patching-tools.js:14:53)
    at fulfilled (/Users/thomasnohl/.npm/_npx/7892/lib/node_modules/@shopware-pwa/cli/node_modules/gluegun/build/toolbox/patching-tools.js:5:58)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19

Most upvoted comments

I’m sorry, that I couldn’t respond earlier, I had other projects with higher priority.

@patzick thank you for fixing this, I just tested the latest release and it seems to be working perfectly fine 🙏

@joelschwegmann @thmsnhl thank you, folks, for help with that! #1169 will close that issue, so after that wait a few minutes for the canary to be published and please try again 👍

Canary is changing the structure a bit, so please choose canary on init as well 😃 Please let me know if there will be still problems. We’ll backport this fix into the stable version of the CLI as well after confirmation that everything works!