This is really a problem with the clunky website code. Outdated/invalid next configuration
example error:
$ next experimental-compile
⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
> Build error occurred
/app/next.config.js:40
) module.exports = __xCfg__(__orig_cfg__);
^^^^^^
SyntaxError: Unexpected identifier 'module'
at wrapSafe (node:internal/modules/cjs/loader:1378:20)
at Module._compile (node:internal/modules/cjs/loader:1428:41)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async loadConfig (/app/node_modules/next/dist/server/config.js:678:36)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
e.g., the Laconic.com website doesn't build:https://github.com/LaconicNetwork/laconic.com/issues/169
This is really a problem with the clunky website code. Outdated/invalid next configuration
example error:
```
$ next experimental-compile
⨯ Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
> Build error occurred
/app/next.config.js:40
) module.exports = __xCfg__(__orig_cfg__);
^^^^^^
SyntaxError: Unexpected identifier 'module'
at wrapSafe (node:internal/modules/cjs/loader:1378:20)
at Module._compile (node:internal/modules/cjs/loader:1428:41)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at cjsLoader (node:internal/modules/esm/translators:346:17)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:286:7)
at ModuleJob.run (node:internal/modules/esm/module_job:234:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
at async loadConfig (/app/node_modules/next/dist/server/config.js:678:36)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
zramsay
changed title from handle all next scenarios to handle all next configurations2025-02-19 16:58:04 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
e.g., the Laconic.com website doesn't build:https://github.com/LaconicNetwork/laconic.com/issues/169
This is really a problem with the clunky website code. Outdated/invalid next configuration
example error:
handle all next scenariosto handle all next configurations