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

Nuxt not working after generating service #633

Closed
jarnojellesma opened this issue Jul 27, 2017 · 3 comments
Closed

Nuxt not working after generating service #633

jarnojellesma opened this issue Jul 27, 2017 · 3 comments

Comments

@jarnojellesma
Copy link

jarnojellesma commented Jul 27, 2017

Behavior

I have a project combining Nuxt for server-side rendering VueJs, and Feathers as the API server. Currently everything works with an Nedb service. But after generating a Sequelize service I'm receiving the following error upon starting the Nuxt server:

(node:30149) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: __WEBPACK_IMPORTED_MODULE_1_nuxt___default.a is not a constructor

Here is a repo, try to generate a service, and after that do npm run dev-client.
https://github.com/jarnojellesma/feathers-nuxt-error

I solved it by removing node_modules, and doing npm install again. So there must be going something wrong by generating the service.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):
"feathers": "^2.1.1",

NodeJS version:
v6.10.3

Operating System:
Ubuntu 16.04

Browser Version:
Version 59.0.3071.86 (Official Build) (64-bit)

Nuxt Version:
"nuxt": "^1.0.0-alpha.5",

Module Loader:
"node": ">= 6.0.0",
"yarn": ">= 0.18.0"

@daffl
Copy link
Member

daffl commented Aug 7, 2017

It looks like it was an npm error. Closing since the link to the repository is no longer working. Please reopen if it is fully reproducible and specifically related to Feathers.

@daffl daffl closed this as completed Aug 7, 2017
@woodgates
Copy link

Hi.
I solved this in a very simple way that is working. That a look at server/app.js and server/middleware in my repo.
https://github.com/woodgates/feathers-nuxt

@lock
Copy link

lock bot commented Feb 7, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue with a link to this issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants