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

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

Open
samt202410 opened this issue Jun 26, 2023 · 2 comments
Open

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

samt202410 opened this issue Jun 26, 2023 · 2 comments

Comments

@samt202410
Copy link

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:

  • ./node_modules/resolve-url-loader/index.js
  • ./node_modules/@angular-devkit/build-angular/node_modules/sass-loader/dist/cjs.js
    You may need an additional loader to handle the result of these loaders.

.zoomist-container {
| position: relative;
| touch-action: none;

@exodussystem
Copy link

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
Copy link
Author

Thanks a lot @exodussystem

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