react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Error: Can't resolve './node_modules/react-select/less/select.less'

Open ganapativs opened this issue 10 years ago • 4 comments

WHICH VERSION OF REACT ARE YOU USING?

Officially Supported:
[ ] v0.14.x
Community Supported:
[x] v15.0.x

WHICH BROWSER ARE YOU USING?

Officially Supported:
[ ] IE 9 / IE 10 / IE 11
[ ] Edge
[x] Chrome
Should work:
[ ] Firefox
[ ] Safari

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md

Current behavior ERROR in ./~/css-loader?-discardDuplicates!./~/react-data-grid/themes/react-data-grid.css Module not found: Error: Can't resolve './node_modules/react-select/less/select.less' in '/Users/guns/tracxn/tracxnportal/node_modules/react-data-grid/themes' @ ./~/css-loader?-discardDuplicates!./~/react-data-grid/themes/react-data-grid.css 3:10-114 @ ./~/react-data-grid/themes/react-data-grid.css

Issue: @import './node_modules/react-select/less/select.less' in 'themes/react-data-grid.css'

Expected/desired behavior Ideally react-data-grid.css shouldn't import .less file in relative node module folder as latest npm uses plain module directory structure and I have react-select module installed. or should it be @import '../../node_modules/react-select/dist/react-select.css' ?

Reproduction of the problem Using [email protected] + webpack with css + style loader (No less loader).

ganapativs avatar Nov 25 '16 07:11 ganapativs

Facing the same issue. Is there any solution other than just commenting out the import?

anujit avatar Nov 26 '16 07:11 anujit

it works by removing the relative path, so

/node_modules/...etc, as of now it is looking for the node modules relative to the themes folder.

dpastoor avatar Dec 02 '16 19:12 dpastoor

This import is really necessary? Variables initialized in imported less file aren't used in this css file. No regressions founded in local environment when i remove this import

kzde avatar Dec 05 '16 15:12 kzde

select.less just initialize variables, but also import others .less file, with css directives. The question is : Does react-data-grid project became less dependant ? Or is it an "oblivion" ?

MathieuMz avatar Dec 12 '16 07:12 MathieuMz