myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
14.23k stars 1.72k forks source link

Less file error - Angular #641

Open Sree-raghavan opened 1 year ago

Sree-raghavan commented 1 year ago

./node_modules/x-data-spreadsheet/src/index.less:1:5 - Error: Module parse failed: Unexpected token (1:5) File was processed with these loaders:

Having this issue

scry-UrjitDesai commented 1 year ago

facing the same issue. Did you manage to figure it out ?

Sree-raghavan commented 1 year ago

facing the same issue. Did you manage to figure it out ? No i havent

dsandul commented 1 year ago

You can try the following webpack config for Angular ngx-build-plus builder:

const MiniCssExtractPlugin = require('mini-css-extract-plugin');

module.exports = {
  module: {
    rules: [
      {
        test: /\.less$/,
        use: [
          MiniCssExtractPlugin.loader,
          'css-loader',
          'less-loader',
        ],
      },
    ]
  }
}
IbrahimAlhaj9 commented 1 year ago

the same error but with angular 15 any idea how I can fix it? please refer to :https://github.com/myliang/x-spreadsheet/issues/658

Thank you.

lijenyan commented 6 months ago

Modify node_modules\x-data-spreadsheet\src\index.js Comment out => import './index.less';

In styles.css of the project Add => @import "x-data-spreadsheet/dist/xspreadsheet.css";