element-plus-nuxt icon indicating copy to clipboard operation
element-plus-nuxt copied to clipboard

@forward error on Netlify build

Open mojjjtaba opened this issue 1 year ago • 1 comments

I want to deploy my code on Netlify but I'm getting en error on Netlify. I don't get this error on local build

@forward 'element-plus/theme-chalk/src/common/var.scss' with (
  $colors: (
    'primary': (
      'base': #155EEF,
    ),
    'warning': (
      'base': #F79009,
    ),
    'danger': (
      'base': #F04438,
    ),
    'error': (
      'base': #F04438,
    ),
    'success': (
      'base': #12B76A,
    ),
  ),
);

error:
6:32:47 PM: [error] x Build failed in 595ms
6:32:47 PM: [error] Nuxt Build Error: [vite:css] [sass] Can't find stylesheet to import.
   ╷
6:32:47 PM: 1  │ ┌ @forward 'element-plus/theme-chalk/src/common/var.scss' with (
6:32:47 PM: 2  │ │   $colors: (
6:32:47 PM: 3  │ │     'primary': (
6:32:47 PM: 4  │ │       'base': #155EEF,
6:32:47 PM: 5  │ │     ),
6:32:47 PM: 6  │ │     'warning': (
6:32:47 PM: 7  │ │       'base': #F79009,
6:32:47 PM: 8  │ │     ),
6:32:47 PM: 9  │ │     'danger': (
6:32:47 PM: 10 │ │       'base': #F04438,
6:32:47 PM: 11 │ │     ),
6:32:47 PM: 12 │ │     'error': (
6:32:47 PM: 13 │ │       'base': #F04438,
6:32:47 PM: 14 │ │     ),
6:32:47 PM: 15 │ │     'success': (
6:32:47 PM: 16 │ │       'base': #12B76A,
6:32:47 PM: 17 │ │     ),
6:32:47 PM: 18 │ │   ),
6:32:47 PM: 19 │ │ );
6:32:47 PM:    │ └─^

mojjjtaba avatar Jul 29 '24 10:07 mojjjtaba

Sorry, I may not be able to help you.

IMO, This is a issues related to Nuxt.

tolking avatar Aug 21 '24 14:08 tolking