ZachJW34 / nx-plus

Collection of Nx Community Plugins
MIT License
302 stars 50 forks source link

Support for Paths resolve for SASS files inside .vue component #274

Open montella1507 opened 1 year ago

montella1507 commented 1 year ago

Current behavior:


tsconfig.json
    "paths": {
      "@/*": [
        "src/*"
      ],

Folder /app/shared contains shared.sass etc.

Inside component:

<style lang='sass' scoped>
@use 'sass:math'
@import '@/app/shared/shared'
Error:
Syntax Error: SassError: Can't find stylesheet to import.
  ╷
3 │ @import '@/app/shared/shared'

That tsconfig.json path works correctly for Typescript files. Doesnt work for SASS imports.. tried to solve this via custom configure-webpack.js however it looks resolve / alias is being ignored?

montella1507 commented 1 year ago