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

v5.13.2 regression - yarn generate fails in nuxt@1.4.5 #498

Comments

@RustamF1
Copy link

RustamF1 commented May 18, 2021

nuxt@1.4.5
"@nuxtjs/axios" v5.13.2

 > [build-stage 6/6] RUN yarn generate:
#12 0.448 yarn run v1.22.4
#12 0.484 $ nuxt generate
#12 1.448 2021-05-18T06:07:14.818Z nuxt:generate Generating...
#12 1.465 2021-05-18T06:07:14.836Z nuxt: Call error hooks (1)
#12 1.501
#12 1.501  ERROR  Nuxt error
#12 1.501
#12 1.501   TypeError: Cannot read property 'push' of undefined
#12 1.501
#12 1.501   - module.js:41 ModuleContainer.axiosModule
#12 1.501     [app]/[@nuxtjs]/axios/lib/module.js:41:32
#12 1.501
#12 1.501   - module.js:162
#12 1.501     [app]/[nuxt]/lib/core/module.js:162:30
#12 1.501
#12 1.501   - new Promise
#12 1.501
#12 1.501   - module.js:146 ModuleContainer.addModule
#12 1.501     [app]/[nuxt]/lib/core/module.js:146:12
#12 1.501
#12 1.501   - utils.js:96
#12 1.501     [app]/[nuxt]/lib/common/utils.js:96:43
#12 1.501
#12 1.501   - task_queues.js:97 processTicksAndRejections
#12 1.501     internal/process/task_queues.js:97:5
#12 1.501
#12 1.501   - module.js:19 async ModuleContainer.ready
#12 1.501     [app]/[nuxt]/lib/core/module.js:19:5
#12 1.501
#12 1.501   - nuxt.js:60 async Nuxt.ready
#12 1.501     [app]/[nuxt]/lib/core/nuxt.js:60:5
#12 1.501
#12 1.501   - generator.js:55 async Generator.initiate
#12 1.501     [app]/[nuxt]/lib/builder/generator.js:55:5
#12 1.501
#12 1.501   - generator.js:40 async Generator.generate
#12 1.501     [app]/[nuxt]/lib/builder/generator.js:40:5
#12 1.501
#12 1.501
#12 1.516 error Command failed with exit code 1.
#12 1.516 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
executor failed running [/bin/sh -c yarn generate]: exit code: 1

stable v5.13.1- OK

[build-stage 6/6] : RUN yarn generate
yarn run v1.22.4
$ nuxt generate
2021-05-18T06:46:07.505Z nuxt:build App root: /app
2021-05-18T06:46:07.505Z nuxt:build Generating /app/.nuxt files...
2021-05-18T06:46:07.508Z nuxt:build Generating files...
2021-05-18T06:46:07.573Z nuxt:build Generating routes...
2021-05-18T06:46:07.619Z nuxt:build Building files...
....
@pi0 pi0 closed this as completed in 66d56ab May 18, 2021
@pi0
Copy link
Member

pi0 commented May 18, 2021

Hi @RustamF1. The issue should be fixed in 5.13.4. But since you are using nuxt 1 which is not tested in the support matrix, I would suggest pinning nuxt dependencies in package.json ("@nuxtjs/axios": "^5.13.4" => "@nuxtjs/axios": "5.13.4") or considering to upgrade to nuxt2. PS: latest version might break internet-explorer compatibility on nuxt1.

Best.

This was referenced Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment