-
Notifications
You must be signed in to change notification settings - Fork 923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module './dist'[BUG] #7126
Comments
@samuelruiz2020 thanks for adding an issue. you can check under |
hi @joshuali925 Thanks for support. The packages/osd-pm/dist path and index.js file did not exist because push rules in my gitlab repo, It was solved. Now, the issue is that i am using a corporate yarn registry and it is stuck when resolving packages, how can i fix it?, because not very clear if i need to use encodeURIComponent() or encodeURI() and where to use it
|
Ignore it , i fixed it, it was a dependency defined wrongly in package.json file , my bad. Thanks for support again. You can close it. |
Close the issue has it has been resolved. |
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 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:
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):
The text was updated successfully, but these errors were encountered: