-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Node 13 support #170
Comments
Hi @Slessi - you're correct, adding that resolution should work for the time being. We've already made the changes to incorporate Closing this as it's already fixed in master. |
@mike-marcacci nice. You have a plan when that would be released? I'm using apollo-server which depends on this library and would need to file an issue there also if they don't update EDIT: Cool I didn't realise |
I believe we'll have a new release after #169 gets finished. Node 12 and 13 changed the way commonjs and es modules work, and removed the mechanism for publishing both in the same library... so this is re-tooling to drop our experimental mjs support. |
Looks like graphql-upload needs to cut a new release since fs-capacitor was bumped to 4.0.0. |
@gregory after dogfooding what was on The conclusion so far is that they need to be handled by the consumer in their app (not in Mike is taking point on this, and he has been travelling in the last day but we're hoping to make some progress soon. |
Thanks for the update! |
|
The version of Changing the resolutions doesn't work for me. Any solution? |
You can force it by either using the yarn's resolution or npm-force-resolutions I added this in my package.json: "resolutions": {
"**/**/fs-capacitor":"^5.0.0",
"**/graphql-upload": "^9.0.0"
} |
Thank you for your answer! I raged-quit and downgraded to Node 12... |
I can confirm that the solution by @gregory works with Apollo Server Express. |
Also getting this issue using Node Solution by @gregory did not work for me, using Apollo Server Express. |
This worked for me when I am on Node.js 14
|
I was able to remove the |
Works for "resolutions": {
"apollo-server-koa/apollo-server-core/fs-capacitor": "^6.2.0",
"apollo-server-koa/apollo-server-core/graphql-upload": "^11.0.0"
} |
I'm facing the same issue, how did you get this to work, |
Did you add those exact versions to you dependencies as well? I did, added the resolutions in package.json and works for me using node 14.11.0 |
hey @anthager I have the same situation, with Node v14.4, npm installed the specific versions of graphql-upload and fs-capacitor like @Oliver-ke did and it doesn't work... :( did just the dependencies, just the resolutions entry, both together, nada :( :( btw my project is with stack:
and I've implemented the type-graphql solution regarding uploads, and it's working - the exported schema shows the file is an |
For anyone still hitting this, the resolutions seems to work correctly without globbing. For example:
Also make sure you include the preinstall script: |
I cannot thank you enough, it suddenly works like a miracle! |
Thank you! This worked for me with Node v14.15.0. |
I can confirm this works for node 14 |
I'm using node 14.13.1 with Next.js and apollo-server-micro. The following resolved the issue:
|
I am using yarn package manager and while trying to include this, I get an error that package.lock.json is not found. Do I need to switch to npm or is there a way to do this for yarn |
@XshubhamX you truly are shameless. Yesterday you agreed not to spam poorly formatted comments asking for help with your work: |
Worked for me in node 14.16.1 with the following configuration:
I needed to add force-resolutions inside "scripts"
Remove ./node_modules and install dependencies again. |
Hi! Thanks! This solution works with yarn, but doesn't work with npm install. |
@ezalivadnyi don’t try to work with the outdated Apollo Server file upload implementation; disable it using This won't be a waste of effort because Apollo plans to never update the version of |
- to fix graphql-upload bug (jaydenseric/graphql-upload#170)
I used the solution from Schnitzel and it worked perfectly. See : uselagoon/lagoon#2747 |
When using this library with Node 13, I receive the following:
This is an issue with
fs-capacitor
mike-marcacci/fs-capacitor#15 which has been fixed in3.0.0
so need a version bump on this packageI can resolve this temporarily with this in my package.json
There is now
fs-capacitor
5.0.0
as well but haven't tried itThe text was updated successfully, but these errors were encountered: