ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

plugin-graphql importing apollo/client file that no longer exists in recent releases #1112

Closed hutchgrant closed 1 year ago

hutchgrant commented 1 year ago

Type of Change

Bug

Summary

When running greenwood develop and using @greenwood/plugin-graphql in my greenwood.config.js I see:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/skynet/workspace/greenwood/rubiks/node_modules/@apollo/client/core/core.cjs.js' imported from /home/skynet/workspace/greenwood/rubiks/node_modules/@greenwood/plugin-graphql/src/core/cache.js

Details

@greenwood/plugin-graphql is importing from apollo/client/core/core.cjs.js which no longer exists in more recent releases. Instead the file apollo/client/core/core.cjs exists without the .js extension.

The yarn.lock and package.json should be updated with the most recent release of @apollo/client as well