next-i18next 13.1.0 → 13.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,7 +90,7 @@ var serverSideTranslations = /*#__PURE__*/function () {
90
90
  _context.next = 12;
91
91
  break;
92
92
  }
93
- throw new Error('next-i18next was unable to find a user config');
93
+ throw new Error("next-i18next was unable to find a user config at ".concat(_path["default"].resolve(DEFAULT_CONFIG_PATH)));
94
94
  case 12:
95
95
  config = (0, _createConfig.createConfig)(_objectSpread(_objectSpread({}, userConfig), {}, {
96
96
  lng: initialLocale
@@ -16,7 +16,7 @@ export const serverSideTranslations = async (initialLocale, namespacesRequired =
16
16
  userConfig = await import(path.resolve(DEFAULT_CONFIG_PATH));
17
17
  }
18
18
  if (userConfig === null) {
19
- throw new Error('next-i18next was unable to find a user config');
19
+ throw new Error(`next-i18next was unable to find a user config at ${path.resolve(DEFAULT_CONFIG_PATH)}`);
20
20
  }
21
21
  const config = createConfig({
22
22
  ...userConfig,
@@ -56,7 +56,7 @@ export var serverSideTranslations = /*#__PURE__*/function () {
56
56
  _context.next = 12;
57
57
  break;
58
58
  }
59
- throw new Error('next-i18next was unable to find a user config');
59
+ throw new Error("next-i18next was unable to find a user config at ".concat(path.resolve(DEFAULT_CONFIG_PATH)));
60
60
  case 12:
61
61
  config = createConfig(_objectSpread(_objectSpread({}, userConfig), {}, {
62
62
  lng: initialLocale
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-i18next",
3
- "version": "13.1.0",
3
+ "version": "13.1.1",
4
4
  "repository": "git@github.com:i18next/next-i18next.git",
5
5
  "author": "i18next",
6
6
  "funding": [