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 lang="scss" in external components #193

Open
silveltman opened this issue Jul 8, 2024 · 1 comment
Open

support lang="scss" in external components #193

silveltman opened this issue Jul 8, 2024 · 1 comment

Comments

@silveltman
Copy link

silveltman commented Jul 8, 2024

I import components from an external library. These components all use <style lang="scss">. I get these errors for all components:

Comments:

 > style:/usr/local/__site/src/node_modules/.pnpm/fulldev-ui@0.3.7_prettier-plugin-astro@0.13.0_prettier@3.2.5_vite@5.3.3_sass@1.77.6_/node_modules/fulldev-ui/src/components/_todo/Prose.astro:3:2: warning: Comments in CSS use "/* ... */" instead of "//"
    3 │   // @include component('prose') {
      ╵   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@imports:

 > style:/usr/local/__site/src/node_modules/.pnpm/fulldev-ui@0.3.7_prettier-plugin-astro@0.13.0_prettier@3.2.5_vite@5.3.3_sass@1.77.6_/node_modules/fulldev-ui/src/components/typography/ListItem.astro:1:8: error: Could not resolve "../../css/utils.scss" (the plugin "bookshop-astro" didn't set a resolve directory)
    1 │ @import '../../css/utils.scss';
      ╵         ~~~~~~~~~~~~~~~~~~~~~~

other:

  errors: [
    {
      detail: undefined,
      location: {
        column: 8,
        file: 'style:/usr/local/__site/src/node_modules/.pnpm/fulldev-ui@0.3.7_prettier-plugin-astro@0.13.0_prettier@3.2.5_vite@5.3.3_sass@1.77.6_/node_modules/fulldev-ui/src/components/_Component.astro',
        length: 19,
        line: 1,
        lineText: "@import '../css/utils.scss';",
        namespace: '',
        suggestion: ''
      },
      notes: [],
      pluginName: '',
      text: `Could not resolve "../css/utils.scss" (the plugin "bookshop-astro" didn't set a resolve directory)`
    },

@ cloudcannon support: full logs on https://swift-tundra.cloudvent.net/

@remi-freriks
Copy link

We run into the same problem when we want to import scss variables into bookshop components.

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

No branches or pull requests

2 participants