Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
montella1507 opened this issue Oct 25, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@montella1507
Copy link

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 montella1507 added the enhancement New feature or request label Oct 25, 2022
@montella1507
Copy link
Author

  • it works when extension is added (doesnt work without extension)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant