OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

Error: Cannot find module './dist'[BUG]

Open samuelruiz2020 opened this issue 1 year ago • 1 comments

Describe the bug

I compile and build a container image using the OSD 2.11.0 github repository, and it's having issues with the ./dist plugin that it can't find. Also zlib is unable to install because it gets a message node-waf: command not found. I searched for resolutions and those did not help me.

Node.js v18.16.0 yarn run v1.22.22

A clear and concise description of what the bug is.

To Reproduce

  • yarn osd bootstrap yarn run v1.22.22 $ scripts/use_node scripts/osd bootstrap node:internal/modules/cjs/loader:1078 throw err; ^ Error: Cannot find module './dist' Require stack:
  • /builds/occne/opensearch-dashboard-mirror/packages/osd-pm/cli.js
  • /builds/occne/opensearch-dashboard-mirror/scripts/osd.js at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object. (/builds/occne/opensearch-dashboard-mirror/packages/osd-pm/cli.js:31:1) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/builds/occne/opensearch-dashboard-mirror/packages/osd-pm/cli.js', '/builds/occne/opensearch-dashboard-mirror/scripts/osd.js' ]

Expected behavior Install packages , dependencies and bootstrap correctly OSD 2.11.0

OpenSearch Version 2.11.0

Dashboards Version OSD 2.11.

Plugins ./dist

Host/Environment (please complete the following information):

  • OS: Oracle Linux 9

samuelruiz2020 avatar Jun 28 '24 14:06 samuelruiz2020