styled-jsx-plugin-less icon indicating copy to clipboard operation
styled-jsx-plugin-less copied to clipboard

@import relative path looked from `node_modules/` folder

Open RusinovAnton opened this issue 6 years ago • 0 comments

Hello, thanks for your work on this lib.

Currently, Im trying to port all .less styles into app with styled-jsx. There are several files that should be imported. Imports works pretty well so far but relative path should be specified from node_modules/ which is weird.

@import '../theme/styles/colors.import.less';
@import '../theme/styles/bootstrap-variables.less';
@import '../theme/styles/mixins.import.less';

...
{ [Error: './mixins.import.less' wasn't found. Tried - ./mixins.import.less,/Users/rusinov/projects/some-project/node_modules/mixins.import.less,mixins.import.less]
  message: '\'./mixins.import.less\' wasn\'t found. Tried - ./mixins.import.less,/Users/rusinov/projects/some-project/node_modules/mixins.import.less,mixins.import.less',
  stack: undefined,
  type: 'File',
  filename: 'input',
  index: 77,
  line: 4,
  column: 2,
  callLine: NaN,
  callExtract: undefined,
  extract:
   [ '  @import \'./bootstrap-variables.less\';',
     '  @import \'./mixins.import.less\';',
     '' ] }

Any idea how to change it?

RusinovAnton avatar Mar 09 '18 14:03 RusinovAnton