lemol / umi-plugin-apollo

Apollo graphql plugin for umi
49 stars 3 forks source link

Yarn Add Fails #28

Open ial0 opened 4 years ago

ial0 commented 4 years ago

When installing via yarn add umi-plugin-apollo I get this error,

success Saved lockfile.
success Saved 411 new dependencies.
info Direct dependencies
└─ umi-plugin-apollo@0.0.18
info All dependencies
├─ @apollo/react-hoc@3.1.5
....
├─ yeoman-generator@4.0.1
└─ zen-observable-ts@0.8.21
$ umi generate tmp
Path must be a string.
TypeError: Path must be a string.
    at Function.resolveSync [as sync] (/home/ial/Devel/sas/web/node_modules/@umijs/utils/node_modules/resolve/lib/sync.js:53:15)
    at /home/ial/Devel/sas/web/node_modules/@umijs/core/lib/Service/utils/pluginUtils.js:90:29
    at Array.map (<anonymous>)
    at getPluginsOrPresets (/home/ial/Devel/sas/web/node_modules/@umijs/core/lib/Service/utils/pluginUtils.js:89:99)
    at resolvePlugins (/home/ial/Devel/sas/web/node_modules/@umijs/core/lib/Service/utils/pluginUtils.js:183:19)
    at new Service (/home/ial/Devel/sas/web/node_modules/@umijs/core/lib/Service/Service.js:183:59)
    at new Service (/home/ial/Devel/sas/web/node_modules/umi/lib/ServiceWithBuiltIn.js:50:5)
    at /home/ial/Devel/sas/web/node_modules/umi/lib/cli.js:98:15
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/home/ial/Devel/sas/web/node_modules/umi/lib/cli.js:53:103)

Any ideas?

treffiletti commented 4 years ago

+1 Same issue here.

askurat commented 4 years ago

@ial0 did you ever get this working?

beyondouyuan commented 4 years ago

+1 same issue here

umi verssion 3.x