sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

Less loader failing to retrieve file content from node module

Open youennPennarun opened this issue 2 years ago • 1 comments

Bug report

Packages affected

  • [ ] sandpack-client
  • [x] sandpack-react

Description of the problem

I am trying to import a package that itself import a less file from a different package. They are both private packages pulled from a proxy via Verdaccio

The first package is a react component library importing a less file

import "./myLessFile.less"

and this less file imports less variables from another package (for example purposes @org/myPackage)

@import '~@org/myPackage';

When the less loader tries to load content from @import "~@org/myPackage" the content is empty: Screen Shot 2023-01-31 at 7 18 04 PM

What steps can we take to reproduce the problem?

Unfortunately, as these packages are private and I can't find a component library using less loader I'm not sure how to share a reproducible example. I know that this makes my issue really hard to investigate. If you have any idea what I could do to pin point the issue please let me know

Your Environment

Software Name/Version
Sandpack-react version 1.20.8
Browser Chrome@108
Operating System [email protected]

youennPennarun avatar Feb 01 '23 00:02 youennPennarun