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

don't work vite version 3 #79

Closed
hmz22 opened this issue Jul 24, 2022 · 6 comments
Closed

don't work vite version 3 #79

hmz22 opened this issue Jul 24, 2022 · 6 comments

Comments

@hmz22
Copy link

hmz22 commented Jul 24, 2022

in vite version 3 package.json type:"module" and when i create apollo.config.js and add module.export = {...} dont complie and show error change type to commonjs or cjs and I change file name to apollo.config.cjs don't work and when change type to commonjs, vite don't work please fix this problem

┆Issue is synchronized with this Jira Task by Unito

@danielb7390
Copy link

Having the same problem. When i rename the file to apollo.config.cjs i get this error:

It looks like there are 0 files associated with this Apollo Project. This may be because you don't have any files yet, or your includes/excludes fields are configured incorrectly, and Apollo can't find your files. For help configuring Apollo projects, see this guide: https://go.apollo.dev/t/config

If i rename the file back to apollo.config.js and set "type": "commonjs", the plugin works fine. But now my project is broken 😅

@Foresteam
Copy link

Same issue.
apollographql/apollo-tooling#2683

@iamolegga
Copy link

Any progress on this?

@alessbell
Copy link
Contributor

Could you try again with v1.20.0 (just released to the VS Code marketplace) @danielb7390? Or if anyone else is able to try that out. It should now detect config files with the .cjs extension, thanks!

@PuffCab
Copy link

PuffCab commented Jan 17, 2024

Could you try again with v1.20.0 (just released to the VS Code marketplace) @danielb7390? Or if anyone else is able to try that out. It should now detect config files with the .cjs extension, thanks!

It works now , with v1.20.0 and .cjs extension for th config file .

Screenshot 2024-01-17 at 19 21 47

Thanks a lot!

@alessbell
Copy link
Contributor

Thanks for confirming @PuffCab! I'll go ahead and close out this issue.

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

6 participants