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

Getting error [ TypeError: getRouteParams is not a function ] for @nuxtjs/pwa #147

Closed
camelG opened this issue Feb 19, 2019 · 11 comments
Closed

Comments

@camelG
Copy link

camelG commented Feb 19, 2019

nuxt.config.js

  /*
   ** Nuxt.js modules
   */
  modules: [
    ['@nuxtjs/pwa', {
      icon: false
    }]
  ],

run command

npm run dev

get error

> nuxt

i Preparing project for development                                                                                                                                                                          10:38:16
i Initial build may take a while                                                                                                                                                                             10:38:16

 FATAL  getRouteParams is not a function                                                                                                                                                                     10:38:16

  at ModuleContainer.addManifest (node_modules\@nuxtjs\manifest\index.js:18:38)
  at hook (node_modules\@nuxtjs\manifest\index.js:7:17)
  at ModuleContainer.nuxtManifest (node_modules\@nuxtjs\manifest\index.js:11:12)
  at Promise (node_modules\@nuxt\core\dist\core.js:172:30)
  at new Promise (<anonymous>)
  at ModuleContainer.addModule (node_modules\@nuxt\core\dist\core.js:170:12)
  at ModuleContainer.requireModule (node_modules\@nuxt\core\dist\core.js:121:17)
  at module (node_modules\@nuxtjs\pwa\index.js:7:17)
  at promise.then (node_modules\@nuxtjs\pwa\index.js:1:146)
  at process._tickCallback (internal/process/next_tick.js:68:7)


   ╭─────────────────────────────────────────────────╮
   │                                                 │
   │   ✖ Nuxt Fatal Error                            │
   │                                                 │
   │   TypeError: getRouteParams is not a function   
   │                                                 │
   ╰─────────────────────────────────────────────────╯

npm ERR! code ELIFECYCLE
npm ERR! errno 1
This question is available on Nuxt community (#c98)
@ghost ghost closed this as completed Feb 19, 2019
@ghost ghost added the cmty:question label Feb 19, 2019
@ghost
Copy link

ghost commented Feb 19, 2019

This issue as been imported as question since it does not respect pwa-module issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/pwa-module/issues/c98.

@kennydorion
Copy link

Same issue there...

@manniL
Copy link
Member

manniL commented Feb 26, 2019

@kennydorion feel free to file a correct bug report then.

@posva
Copy link
Contributor

posva commented Feb 28, 2019

this problem went away for me after updating nuxt to the latest stable version

@wemod123
Copy link

wemod123 commented Mar 2, 2019

Same for me, while I updated the nuxt to latest version, but still it happens!

@pi0
Copy link
Member

pi0 commented Mar 2, 2019

@wemod123 Try cleaning up yarn.lock and node_modules. This may be a yarn failure

@wemod123
Copy link

wemod123 commented Mar 2, 2019

@pi0
I had try your suggestion: remove yarn.lock, and node_modules, and install all modules with fresh repo.
But still same error happend as this issue title told.

I go through the install process strictly follow the guide here: https://pwa.nuxtjs.org/setup.html

Suggest repopen this issue.

@manniL
Copy link
Member

manniL commented Mar 2, 2019

@wemod123 Please provide a reproduction @wemod123

@pi0 pi0 reopened this Mar 2, 2019
@wemod123
Copy link

wemod123 commented Mar 2, 2019

I just create a sample repo, please have a check:
https://github.com/wemod123/nuxt-pwa-sample

@Caaalabash
Copy link

same problem
nuxt version: 2.2.6 ~ 2.4.5
@nuxtjs/pwa version: v3.0.0-beta.1 ~ v3.0.0-beta.10

@pi0 pi0 closed this as completed in fddfa7a Mar 5, 2019
@pi0
Copy link
Member

pi0 commented Mar 5, 2019

The known edge case should not happen anymore with 3.0.0-beta.11

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

7 participants