-
Notifications
You must be signed in to change notification settings - Fork 38
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
Not compatible with PNPM #32
Comments
Hey! Thank you for your contribution. Unfortunately, I never used pnpm. I need to investigate this as well... Cheers! |
Thanks for your reply. One possible solution you can consider is to pass the config object during the initialization, comparing to current implementation this could eliminate the assumption of the file naming and location. Thanks for your great project. |
Hey! Planning to implement this in the next release. Cheers! |
Great. Looking forward to that. |
Hey, looks like the expectation of locale folder location makes it incompatible with the monorepo setup as well, where you have the i18 folder not in |
@hughlv hey, im also experiencing that with pnpm |
I also met this issue, :( thanks to @mihamor , this is my solution, (bash history): 1968 pnpm patch next-export-i18n@^2.1.0
1969 subl /private/var/folders/zv/jzl76zs903z4wdj_fdskc92r0000gn/T/730a0dd5dbc8fa11edad43fd784b62dd
1970 cd ./node_modules/.pnpm/[email protected]_pxeeag5fab3ngpbhgu2rjk6nzy_yucv4tfv7v7nrkw2uguegj6e7e/node_modules/next-export-i18n
1971 cd ./../../../../../i18n
1974 pnpm patch-commit /private/var/folders/zv/jzl76zs903z4wdj_fdskc92r0000gn/T/730a0dd5dbc8fa11edad43fd784b62dd this is the final generated patch file: diff --git a/index.js b/index.js
index 79f31c56e96382496d9ba42f7fa4da736ecfcb47..de12b2889ff1c8bc2480f818c51328b5b1b14109 100644
--- a/index.js
+++ b/index.js
@@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
var router = require('next/router');
var React = require('react');
-var I18N = require('./../../i18n/index.js');
+var I18N = require('./../../../../../i18n/index.js');
var Mustache = require('mustache');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } and "pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
} |
Any updates? |
@martinkr we are using |
Hi @SalahAdDin, I appreciate your interest in this package. Unfortunately, I don't use ppm in my projects. Hence, I need to gain practical experience with this package manager's concepts. If you would consider adding Pnpm support, I would happily merge your PR for the next release. Looking forward to your PR, Martin |
what about opening a MR? |
it would be good then to update the package to use aliases... |
Hi @SalahAdDin, Would you consider providing a set of instruction of how to achieve pnpm compatibility? In the Code Snippet, we're referring specific version numbers, hence it would not be feasible to add this snippet directly to the codebase. Thank you for your contribution! Cheers! |
It was @JimmyLv who made the patch. |
I'm encountering this issue when switching from yarn to pnpm:
By reading the source code, the issue is that next-export-i18n assumed it would always be located as <project_folder>/node_modules/next-export-i18n. This is no longer true with pnpm, as it utilized the hard link feature so next-export-18n would be in another location.
I'm still investigating pnpm whether there is solution to make certain package as an exception. No clue yet...
The text was updated successfully, but these errors were encountered: