Skip to content
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

[BUG] Build failed on 2.x branch #569

Closed
ruanyl opened this issue Dec 21, 2023 · 1 comment
Closed

[BUG] Build failed on 2.x branch #569

ruanyl opened this issue Dec 21, 2023 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@ruanyl
Copy link
Member

ruanyl commented Dec 21, 2023

What is the bug?

dashboards-maps git:(2.x) yarn build
yarn run v1.22.19
$ yarn plugin-helpers build
$ node ../../scripts/plugin_helpers build
 info Loaded config file from [/Users/ruanyl/project/OpenSearch-Dashboards-latest/plugins/dashboards-maps/.opensearch_dashboards-plugin-helpers.json]
 info deleting the build and target directories
 info running @osd/optimizer
 │ info initialized, 0 bundles cached
 │ info starting worker [1 bundle]
 │ERROR webpack compile errors
     │ERROR [customImportMapDashboards] build
         │ERROR Optimizations failure.
         │         1 module
         │
         │          ERROR in /Users/ruanyl/project/OpenSearch-Dashboards-latest/packages/osd-optimizer/target/worker/entry_point_creator.js
         │          Module build failed (from /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js):
         │          Error: Cannot find module '@babel/plugin-proposal-class-properties'
         │          Require stack:
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/plugins/dashboards-maps/babel.config.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/@babel/core/lib/config/files/module-types.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/@babel/core/lib/config/files/configuration.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/@babel/core/lib/config/files/index.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/@babel/core/lib/index.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/loader-runner/lib/loadLoader.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/loader-runner/lib/LoaderRunner.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/webpack/lib/NormalModule.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/webpack/lib/NormalModuleFactory.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/webpack/lib/Compiler.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/webpack/lib/webpack.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/packages/osd-optimizer/target/worker/run_compilers.js
         │          - /Users/ruanyl/project/OpenSearch-Dashboards-latest/packages/osd-optimizer/target/worker/run_worker.js
         │              at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
         │              at Function.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.<anonymous> (/Users/ruanyl/project/OpenSearch-Dashboards-latest/plugins/dashboards-maps/babel.config.js:13:5)
         │              at Module._compile (node:internal/modules/cjs/loader:1254:14)
         │              at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
         │              at Module.load (node:internal/modules/cjs/loader:1117:32)
         │              at Function.Module._load (node:internal/modules/cjs/loader:958:12)
         │              at Module.require (node:internal/modules/cjs/loader:1141:19)
         │              at require (node:internal/modules/cjs/helpers:110:18)
         │              at loadPartialConfigAsync (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/@babel/core/src/config/index.ts:44:61)
         │              at Object.<anonymous> (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:155:26)
         │              at Generator.next (<anonymous>)
         │              at asyncGeneratorStep (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:3:103)
         │              at _next (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:5:194)
         │              at /Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:5:364
         │              at new Promise (<anonymous>)
         │              at Object.<anonymous> (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:5:97)
         │              at Object._loader (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:245:18)
         │              at Object.loader (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:64:18)
         │              at Object.<anonymous> (/Users/ruanyl/project/OpenSearch-Dashboards-latest/node_modules/babel-loader/lib/index.js:59:12)
 │ERROR webpack issue

How can one reproduce the bug?

Steps to reproduce the behavior.

What is the expected behavior?

A clear and concise description of what you expected to happen.

What is your host/environment?

Operating system, version.

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

Add any other context about the problem.

@ryanbogan
Copy link
Member

Addressed in #574

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

2 participants