Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

codegen missing in version 0.5.0 #47

Open
inta opened this issue Aug 2, 2022 · 7 comments
Open

codegen missing in version 0.5.0 #47

inta opened this issue Aug 2, 2022 · 7 comments

Comments

@inta
Copy link

inta commented Aug 2, 2022

With version 0.5.0 from npm I get the following error on npm run dev or npm run build:

error when starting dev server:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './codegen' is not defined by "exports" in <project-dir>/node_modules/@leveluptuts/g-query/package.json imported from <project-dir>/vite.config.js.timestamp-1659433708313.mjs
    at new NodeError (node:internal/errors:387:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:439:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:718:3)
    at packageResolve (node:internal/modules/esm/resolve:892:14)
    at moduleResolve (node:internal/modules/esm/resolve:958:20)
    at defaultResolve (node:internal/modules/esm/resolve:1173:11)
    at nextResolve (node:internal/modules/esm/loader:173:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:852:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:439:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)

Version 0.2.3 was working fine.
Is there anything wrong with the new release or are configuration changes required to make it work?

@bitnosis
Copy link

bitnosis commented Aug 18, 2022

I second this....neither is vite:{} allowed. config.kit.vite has been removed — use vite.config.js instead

@inta
Copy link
Author

inta commented Aug 19, 2022

@bitnosis sure, but that config part can be moved manually to vite.config.js

@stolinski maybe this is a problem with npm and it works with pnpm?

@JhordyVlas
Copy link

JhordyVlas commented Sep 23, 2022

@inta you found a solution for this?, I try with yarn and pnmp

@inta
Copy link
Author

inta commented Sep 23, 2022

No, I'm still on version 0.2.3 and thinking about how I can go on with GraphQL on SvelteKit.

@JhordyVlas
Copy link

Take a look at this client: GraphQL Zeus, generates a typed client from your schema, it works for me. Good Luck!

@inta
Copy link
Author

inta commented Sep 25, 2022

Thanks, I'll have a look and see how it can work together with Hasura (that's what I use as backend for GraphQL).

@Neue-Raeumlichkeit
Copy link

Still seems to be a problem...
... Package subpath './codegen' is not defined by "exports" ...
was using npm.

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

4 participants