sandpack
sandpack copied to clipboard
Less loader failing to retrieve file content from node module
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:

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] |