Skip to content

DXE-6210 Fix 'Cannot find module' issue in docker images#56

Open
wzagrajcz wants to merge 1 commit intoakamai:masterfrom
wzagrajcz:bugfix/DXE-6210-fix-module-not-found-in-docker
Open

DXE-6210 Fix 'Cannot find module' issue in docker images#56
wzagrajcz wants to merge 1 commit intoakamai:masterfrom
wzagrajcz:bugfix/DXE-6210-fix-module-not-found-in-docker

Conversation

@wzagrajcz
Copy link
Copy Markdown

Fixing issue of running appsec related commands in akamai-docker images solving following errors:

                ___    __                         _
               /   |  / /______ _____ ___  ____ _(_)
              / /| | / //_/ __ `/ __ `__ \/ __ `/ /
             / ___ |/ ,< / /_/ / / / / / / /_/ / /
            /_/  |_/_/|_|\__,_/_/ /_/ /_/\__,_/_/
===============================================================
=  Welcome to the Akamai Docker Image                         =
===============================================================
=  Project page:                                              =
=  https://github.com/akamai/akamai-docker                    =
===============================================================
node:internal/modules/cjs/loader:1424
  throw err;
  ^Error: Cannot find module '../../src/accountprotectionrulesequence'
Require stack:
- /cli/.akamai-cli/src/cli-appsec/bin/commands/accountprotectionruleSequence.js
- /cli/.akamai-cli/src/cli-appsec/node_modules/sywac/api.js
- /cli/.akamai-cli/src/cli-appsec/node_modules/sywac/index.js
- /cli/.akamai-cli/src/cli-appsec/bin/akamai-appsec
    at Module._resolveFilename (node:internal/modules/cjs/loader:1421:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1059:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1064:22)
    at Module._load (node:internal/modules/cjs/loader:1227:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1504:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.<anonymous> (/cli/.akamai-cli/src/cli-appsec/bin/commands/accountprotectionruleSequence.js:1:37)
    at Module._compile (node:internal/modules/cjs/loader:1761:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/cli/.akamai-cli/src/cli-appsec/bin/commands/accountprotectionruleSequence.js',
    '/cli/.akamai-cli/src/cli-appsec/node_modules/sywac/api.js',
    '/cli/.akamai-cli/src/cli-appsec/node_modules/sywac/index.js',
    '/cli/.akamai-cli/src/cli-appsec/bin/akamai-appsec'
  ]
}Node.js v24.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant