handle all next configurations #27

Open
opened 2025-02-19 16:57:55 +00:00 by zramsay · 0 comments
Member

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.
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 configurations 2025-02-19 16:58:04 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/webapp-deployment-status-api#27
No description provided.