cotton123236 / zoomist

Zoomist is a library built with TypeScript that allows you to create zoom elements on website quickly and easily.
https://zoomist.vercel.app/
MIT License
110 stars 23 forks source link

Module parse failed error when using it in an angular project. #17

Open samt202410 opened 1 year ago

samt202410 commented 1 year ago

Below you find the compilation error which I am getting.

./node_modules/zoomist/src/scss/index.scss:1:0 - Error: Module parse failed: Unexpected token (1:0) File was processed with these loaders:

exodussystem commented 1 year ago

I solved it by adding these to angular.json

      "schematics": {
        "@schematics/angular:application": {
          "styleext": "scss",
          ...
        }
...
            "styles": [
              "node_modules/zoomist/src/scss/index.scss",
              "src/styles.scss"
            ],
samt202410 commented 1 year ago

Thanks a lot @exodussystem