You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
The build script fails with the following error.
FileError: 'swiper/less' wasn't found. Tried - path\swiper-package\swiper\less.less,path\swiper-package\swiper\less.less,npm://swiper\less,npm://swiper\less.less,swiper\less.less in path\swiper-package\main.less on line 1, column 1:
1 @import (less) 'swiper/less';
Expected behavior:
Should have outputted the CSS. Not sure if this is because swiper is using exports in their package.json file.
From reports I heard at work, this works fine on Mac.
Environment information:
less version: 4.1.3
nodejs version: 16.15.0
operating system: Windows 10/11 x64
The text was updated successfully, but these errors were encountered:
florinpavel22
changed the title
Importing less files from a package doesn't work.
Importing less files from a third party library doesn't work.
Sep 14, 2022
florinpavel22
changed the title
Importing less files from a third party library doesn't work.
Importing less files from a third party library crashes the build.
Sep 14, 2022
To reproduce:
npm init -y
.less
andswiper
.main.less
file in the root/src folder.lessc (src/)main.less output/styles.css
.Add these lines in the
main.less
file.Current behavior:
The build script fails with the following error.
Expected behavior:
Should have outputted the CSS. Not sure if this is because swiper is using
exports
in their package.json file.From reports I heard at work, this works fine on Mac.
Environment information:
less
version: 4.1.3nodejs
version: 16.15.0operating system
: Windows 10/11 x64The text was updated successfully, but these errors were encountered: