opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 894 forks source link

Unknown Sass implementation "sass-embedded" #5994

Open Doberick opened 8 months ago

Doberick commented 8 months ago

Describe the bug

When I use the following command:

yarn build

Inside a plugin folder, I get the following error:

     │          ERROR in ./public/index.scss?v7dark (/Users/myuser/Projects/OpenSearch-Dashboards/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-0-1!/Users/myuser/Projects/OpenSearch-Dashboards/node_modules/postcss-loader/dist/cjs.js??ref--6-oneOf-0-2!/Users/myuser/Projects/OpenSearch-Dashboards/node_modules/comment-stripper??ref--6-oneOf-0-3!/Users/myuser/Projects/OpenSearch-Dashboards/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-0-4!./public/index.scss?v7dark)
     │          Module Error (from /Users/myuser/Projects/OpenSearch-Dashboards/node_modules/sass-loader/dist/cjs.js):
     │          Unknown Sass implementation "sass-embedded".
     │          Error: Unknown Sass implementation "sass-embedded".
     │              at getSassImplementation (/Users/myuser/Projects/OpenSearch-Dashboards/node_modules/sass-loader/dist/utils.js:80:27)
     │              at Object.loader (/Users/myuser/Projects/OpenSearch-Dashboards/node_modules/sass-loader/dist/index.js:27:59)
     │           @ ./public/index.scss?v7dark 2:26-318
     │           @ ./public/index.scss
     │           @ ./public/index.ts
     │           @ /Users/myuser/Projects/OpenSearch-Dashboards/packages/osd-optimizer/target/worker/entry_point_creator.js

To Reproduce Steps to reproduce the behavior:

  1. Clone the repository.
  2. Switch to branch 2.11
  3. runnvm use 18.12.0 and yarn install
  4. run node scripts/generate_plugin.js myPlugin
  5. run cd plugins/myPlugin and yarn build

Expected behavior The command should run without errors

ananzh commented 8 months ago

Could you just bootstrap and see if the problem is resolved?