Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Error: Can't find stylesheet to import; @import 'material-theme'; #102

Description

@johschmitz

I am trying to use this component system with the current version of the Svelte template:
https://github.com/sveltejs/template
However I am getting an error:

$ npm run dev

> svelte-app@1.0.0 dev
> rollup -c -w

rollup v2.36.1
bundles src/main.js → public/build/bundle.js...
[!] (plugin svelte) Error: Can't find stylesheet to import.
   ╷
58 │ @import 'material-theme';
   │         ^^^^^^^^^^^^^^^^
   ╵
  node_modules/svelte-materialify/src/styles/_variables.scss 58:9            @import
  node_modules/svelte-materialify/src/components/Grid/Container.svelte 2:11  root stylesheet

I compared with your older template from here
https://github.com/TheComputerM/svelte-materialify-template
and the difference seems to be mainly this import in the rollup:

import css from 'rollup-plugin-css-only';

and a file called theme/_material-theme.scss
I could not get it to run though.
Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions