kamranahmedse / driver.js

A light-weight, no-dependency, vanilla JavaScript engine to drive user's focus across the page
https://driverjs.com
MIT License
22.66k stars 1.01k forks source link

Fixing an issue with importing styles for PostCSS #522

Open d4nicoder opened 1 month ago

d4nicoder commented 1 month ago

Hello!

recently, I've been integrating driver.js into a project with Angular + TailwindCSS. To get the styles working correctly, I had to add an @import "driver.js/dist/driver.css" statement in my global stylesheet file. The issue is that the CSS postprocessor gives me this error:

None of the conditions in the package definition ("import", "require") match any 
of the currently active conditions ("browser", "default", "less", "sass", "style"):....

To solve it, it's necessary to add this line in this project's package.json file.

Is anyone else familiar with this problem in the past? If there's a different solution, please let me know.

Best regards!