-
Notifications
You must be signed in to change notification settings - Fork 285
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
mime dependency breaking changes #326
Comments
Similar problem. We use Node 8 but instead we get a runtime error.
|
I have the same problem that @valtlfelipe |
Same issue. Old 0.12.7 server got re-initialised this morning. |
Thanks @valtlfelipe & @neebz |
It seems this package is no longer maintained. I have created a clone with the fix here: https://www.npmjs.com/package/knox-s3 No other changes other than pinning the |
So there's no chance of getting this fixed? I'm not using Knox directly, I'm actually using Keystone, which has Knox as a dependency itself, so I keep getting this mime.lookup error. Any suggestions if this won't get fixed? |
@manuelxaguilar You will have to open an issue at Keystone, so they can change the |
@manuelxaguilar @valtlfelipe You can also investigate |
@valtlfelipe Yeah, I brought it up but they seem to take forever to reply... We'll see I guess. @sedge I'm using Yarn on my project, which I believe doesn't work well with npm-shrinkwrap. I actually used |
If you use
|
Thanks @madsleejensen - that worked for me, though I was using "resolutions": { "s3-sync/knox/mime": "1.4.0" } The key idea being, one needs to specify the path to |
Knox has its own dependency, mime. Knox is no longer maintained and there is an issue with the way it defined its mime dependency in that it did not lock down mime’s version number. Just 2 months ago, mime updated to version 4.0, which no longer supports below Node 14. Our Keystone sites still run on Node 10 so this results in a runtime error (`SyntaxError: Unexpected identifier` on module export syntax) that can’t be worked around. Keystone Classic fixed this by updating to a fork of knox called knox-s3, which specifies a version of mime but is otherwise the same. This commit applies the same fix. Links: Automattic/knox#326 https://github.com/broofa/mime/blob/main/README.md?plain=1#L21 https://github.com/keystonejs/keystone-classic/blob/master/package.json#L63
Knox has its own dependency, mime. Knox is no longer maintained and there is an issue with the way it defined its mime dependency in that it did not lock down mime’s version number. Just 2 months ago, mime updated to version 4.0, which no longer supports below Node 14. Our Keystone sites still run on Node 10 so this results in a runtime error (`SyntaxError: Unexpected identifier` on module export syntax) that can’t be worked around. Keystone Classic fixed this by updating to a fork of knox called knox-s3, which specifies a version of mime but is otherwise the same. This commit applies the same fix. Links: Automattic/knox#326 https://github.com/broofa/mime/blob/main/README.md?plain=1#L21 https://github.com/keystonejs/keystone-classic/blob/master/package.json#L63
A similar commit was made in onenorth/keystone to fix this issue. Knox has its own dependency, mime. Knox is no longer maintained and there is an issue with the way it defined its mime dependency in that it did not lock down mime’s version number. Just 2 months ago, mime updated to version 4.0, which no longer supports below Node 14. Our Keystone sites still run on Node 10 so this results in a runtime error (`SyntaxError: Unexpected identifier` on module export syntax) that can’t be worked around. Keystone Classic fixed this by updating to a fork of knox called knox-s3, which specifies a version of mime but is otherwise the same. This commit applies the same fix. Links: Automattic/knox#326 https://github.com/broofa/mime/blob/main/README.md?plain=1#L21 https://github.com/keystonejs/keystone-classic/blob/master/package.json#L63
node-mime has released a new version, which requires node>=6. And in package.json of knox requires mim in any version
"mime": "*",
.My enviorment uses node 4, and this just broke my application.
Please merge #325.
See the stack trace.
The text was updated successfully, but these errors were encountered: