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

Generated Nextjs starter out of date. #36

Closed
Pagebakers opened this issue Jun 9, 2022 · 1 comment
Closed

Generated Nextjs starter out of date. #36

Pagebakers opened this issue Jun 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Pagebakers
Copy link
Contributor

Bug description

I was having issues getting the Nextjs starter running, it turns out the code generated was out of date.

import {
    AuthProviders,
    useLiveQuery,
    useWunderGraph,
    withWunderGraph,
} from '../components/generated/wundergraph.nextjs.integration';

Should be

import {
    AuthProviders,
    useLiveQuery,
    useWunderGraph,
    withWunderGraph,
} from '../components/generated/nextjs';

But when looking at the source, this is looking up to date, so I'm not sure where the issue lies.

https://github.com/wundergraph/wundergraph/blob/main/packages/nextjs-testapp/pages/authentication.tsx

How to reproduce

  1. Install wunderctl with npm
npm i -g wunderctl
  1. Run
wunderctl init --template nextjs-starter -o /some/path

Expected behavior

The app should run without errors.

WunderGraph information

All default

Environment & setup

MacOS m1
Node 14

WunderCtl Version

Version: 0.90.32
Commit: 386a3d4b66204411dc89da6919aad0bebe524657
Date: 2022-06-06T12:25:36Z
BuiltBy: ci
@Pagebakers Pagebakers added the bug Something isn't working label Jun 9, 2022
@StarpTech
Copy link
Collaborator

Hi @Pagebakers thank you for opening an issue. I fixed the places in 0849395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants